Class const_vector_range_gen (o2scl)¶
-
template<class vec_t>
class const_vector_range_gen¶ Experimental const vector range object.
Public Functions
-
inline const_vector_range_gen(const vec_t &v, size_t start, size_t last)¶
Create an object starting with index
start
in vectorv
.
-
inline const_vector_range_gen(const const_vector_range_gen &v2, size_t start, size_t last)¶
Create an object from a previously constructed range object.
-
inline const_vector_range_gen(const vector_range_gen<vec_t> &v2, size_t start, size_t last)¶
Create an object from a previously constructed range object.
-
inline size_t size() const¶
Return the vector size.
-
inline const double &operator[](size_t i) const¶
Return a const reference ith element.
-
inline const_vector_range_gen(const vec_t &v, size_t start, size_t last)¶