Empirical
|
Setup an iterator wrapper to make sure that they're not used again after a vector changes. More...
#include <vector.h>
Public Types | |
using | this_t = iterator_wrapper< ITERATOR_T > |
using | wrapped_t = ITERATOR_T |
using | vec_t = emp::vector< T, Ts... > |
Public Member Functions | |
iterator_wrapper (const ITERATOR_T &_in, const vec_t *_v) | |
iterator_wrapper (const this_t &)=default | |
iterator_wrapper (this_t &&)=default | |
~iterator_wrapper () | |
bool | OK (bool begin_ok=true, bool end_ok=true) const |
this_t & | operator= (const this_t &)=default |
this_t & | operator= (this_t &&)=default |
operator ITERATOR_T () | |
operator const ITERATOR_T () const | |
auto & | operator* () |
const auto & | operator* () const |
auto | operator-> () |
const auto | operator-> () const |
this_t & | operator++ () |
this_t | operator++ (int x) |
this_t & | operator-- () |
this_t | operator-- (int x) |
auto | operator+ (int in) |
auto | operator- (int in) |
auto | operator- (const this_t &in) |
this_t & | operator+= (int in) |
this_t & | operator-= (int in) |
auto & | operator[] (int offset) |
Public Attributes | |
const vec_t * | v_ptr |
What vector and revision was this iterator created from? More... | |
int | revision |
Setup an iterator wrapper to make sure that they're not used again after a vector changes.
using emp::vector< T, Ts >::iterator_wrapper< ITERATOR_T >::this_t = iterator_wrapper<ITERATOR_T> |
using emp::vector< T, Ts >::iterator_wrapper< ITERATOR_T >::vec_t = emp::vector<T,Ts...> |
using emp::vector< T, Ts >::iterator_wrapper< ITERATOR_T >::wrapped_t = ITERATOR_T |
|
inline |
|
default |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
default |
|
default |
|
inline |
int emp::vector< T, Ts >::iterator_wrapper< ITERATOR_T >::revision |
const vec_t* emp::vector< T, Ts >::iterator_wrapper< ITERATOR_T >::v_ptr |
What vector and revision was this iterator created from?