get_pointer_from_iterator.h
Go to the documentation of this file.
#ifndef _RHEO_GET_POINTER_FROM_ITERATOR_H
#define _RHEO_GET_POINTER_FROM_ITERATOR_H
namespace rheolef {
template <class Iterator>
typename std::iterator_traits<Iterator>::pointer
get_pointer_from_iterator(Iterator iter) {
return iter.operator->();
}
template <class T>
typename std::iterator_traits<T*>::pointer
get_pointer_from_iterator(T* iter) {
return iter;
}
} // namespace rheolef
#endif // _RHEO_GET_POINTER_FROM_ITERATOR_H
rheolef::get_pointer_from_iterator
std::iterator_traits< Iterator >::pointer get_pointer_from_iterator(Iterator iter)
Definition: get_pointer_from_iterator.h:26
rheolef
This file is part of Rheolef.
Definition: compiler_eigen.h:37
T
Expr1::float_type T
Definition: field_expr.h:218