...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
shared_array_property_map
This property map is an adaptor that contains a boost::shared_array and uses that array to store the property map's data. The resulting property map is a model of Lvalue Property Map. The OffsetMap type is responsible for converting key objects to integers that can be used as offsets into the array.
boost/property_map/shared_array_property_map.hpp
Parameter | Description | Default |
---|---|---|
ValueType | The value type of the property map. | |
OffsetMap | Must be a model of Readable Property Map and the value type must be convertible to std::size_t. |
In addition to the methods and functions required by Lvalue Property Map, this class has the following members.
property_traitsThis is the same type as ValueType.::value_type
shared_array_property_map(size_t n)Constructor. Builds the property map with a size of n elements. The OffsetMap is default constructed.
shared_array_property_map(size_t n, OffsetMap m)Constructor. Builds the property map with a size of n elements.
templateA function for conveniently creating a shared array map.shared_array_property_map make_shared_array_property_map(size_t n, const ValueType&, OffsetMap omap)
Copyright © 2009 | Trustees of Indiana University. |