|
Motiv
Marvelous OTF2 Traces Interactive Visualizer
|
A custom range implementation around std::vector<T>s. More...
#include <Range.hpp>
Public Types | |
| using | It = typename std::vector< T >::iterator |
| Shortcut for the iterator. More... | |
Public Member Functions | |
| Range ()=default | |
| Creates an empty range. | |
| Range (It begin, It end) | |
| Creates a Range defined by two iterators. More... | |
| Range (const Range &rhs) | |
| Constructs a new Range object from a given Range object. More... | |
| Range (std::vector< T > &vec) | |
| Range< T > & | operator= (const Range< T > &rhs) |
| Copy assignment constructor. More... | |
| It | begin () const |
| It | end () const |
| bool | empty () const |
A custom range implementation around std::vector<T>s.
An instance can be created as a copy of a vector or just with to iterators. This allows a more efficient way to pass sub ranges around.
| T | Type of element |
| using Range< T >::It = typename std::vector<T>::iterator |
|
inline |