Mutable Lvalue Property Map
A Mutable Lvalue Property Map provides the get() function and operator[] to obtain a mutable reference to the value associated with a key, and the put() function to associate a value with a key.
Refinement of
WritablePropertyMap
and LvaluePropertyMap
Notation
PMap |
A type that is a model of Mutable_LvaluePropertyMap. |
Associated Types
Reference Type |
boost::property_traits<PMap>::reference |
Must be equal to value_type&. |
Property Map Category
| boost::property_traits<PMap>::category |
Must be convertible to boost::lvalue_property_map_tag. |
Valid Expressions
Concept Checking Class
template <class PMap, class Key>
struct Mutable_LvaluePropertyMapConcept
{
typedef typename property_traits<PMap>::category Category;
typedef boost::lvalue_property_map_tag LvalueTag;
typedef typename property_traits<PMap>::value_type& reference;
void constraints() {
function_requires< ReadWritePropertyMapConcept<PMap, Key> >();
function_requires<ConvertibleConcept<Category, LvalueTag> >();
reference ref = pmap[k];
}
PMap pmap;
Key k;
};
See Also
Property map concepts - Readable Property Map - Writable Property Map - Read / Write Property Map - Lvalue Property Map