Readable property map adaptor for a vector. More...
#include <vector_ref_property_map.h>
Public Types | |
typedef boost::readable_property_map_tag | category |
typedef size_t | key_type |
typedef T | value_type |
typedef T | reference |
Public Member Functions | |
vector_ref_property_map (std::vector< T > &vec) | |
Public Attributes | |
std::vector< T > & | vec |
Readable property map adaptor for a vector.
This is similar to boost::iterator_property_map, except that it holds a reference to the vector, instead of the begin iterator. This allows the map to continue to work even if the referenced vector is modified.