Provides a view of an existing container (e.g., std::vector
) as a Sequence
.
More...
#include <Sequences.hpp>
Public Member Functions | |
Vector_view (sequence_template< storage_t > &viewed) | |
int | size () |
reference_t | operator[] (int index) |
Provides a view of an existing container (e.g., std::vector
) as a Sequence
.
Vector_view
also allows the vector elements to be viewed as a different type than they are stored as with a user-supplied conversion function (again, useful if you don't to provide access to only some aspects of the underlying data).
reference_t
should be a reference type.
|
inlinevirtual |
Implements hexed::Sequence< reference_t >.
|
inlinevirtual |
Implements hexed::Sequence< reference_t >.