19 #ifndef OST_MOL_IMPL_POINTER_ITERATOR_HH
20 #define OST_MOL_IMPL_POINTER_ITERATOR_HH
24 namespace ost {
namespace mol {
namespace impl {
27 class pointer_it :
public std::iterator<std::forward_iterator_tag, T>{
68 return pointer_it<T>(values.empty() ? NULL :
const_cast<T*
>(&values.front()));
74 return pointer_it<T>(values.empty() ? NULL :
const_cast<T*
>(&values.back()+1));
bool operator==(const pointer_it< T > &rhs) const
pointer_it< T > end(const std::vector< T > &values)
pointer_it< T > & operator+(int rhs)
pointer_it< T > begin(const std::vector< T > &values)
pointer_it< T > & operator++()
bool operator!=(const pointer_it< T > &rhs) const