update boost
This commit is contained in:
@@ -14,28 +14,31 @@
|
||||
|
||||
namespace boost
|
||||
{
|
||||
// A null property is somewhat like the inverse of the constant
|
||||
// property map except that instead of returning a single value,
|
||||
// this eats any writes and cannot be read from.
|
||||
// A null property is somewhat like the inverse of the constant
|
||||
// property map except that instead of returning a single value,
|
||||
// this eats any writes and cannot be read from.
|
||||
|
||||
template <typename Key, typename Value>
|
||||
struct null_property_map
|
||||
{
|
||||
typedef Key key_type;
|
||||
typedef Value value_type;
|
||||
typedef void reference;
|
||||
typedef boost::writable_property_map_tag category;
|
||||
};
|
||||
template < typename Key, typename Value > struct null_property_map
|
||||
{
|
||||
typedef Key key_type;
|
||||
typedef Value value_type;
|
||||
typedef void reference;
|
||||
typedef boost::writable_property_map_tag category;
|
||||
};
|
||||
|
||||
// The null_property_map<K,V> only has a put() function.
|
||||
template <typename K, typename V>
|
||||
void put(null_property_map<K,V>& /*pm*/, const K& /*key*/, const V& /*value*/)
|
||||
{ }
|
||||
// The null_property_map<K,V> only has a put() function.
|
||||
template < typename K, typename V >
|
||||
void put(
|
||||
null_property_map< K, V >& /*pm*/, const K& /*key*/, const V& /*value*/)
|
||||
{
|
||||
}
|
||||
|
||||
// A helper function for intantiating null property maps.
|
||||
template <typename Key, typename Value>
|
||||
inline null_property_map<Key, Value> make_null_property()
|
||||
{ return null_property_map<Key, Value>(); }
|
||||
// A helper function for intantiating null property maps.
|
||||
template < typename Key, typename Value >
|
||||
inline null_property_map< Key, Value > make_null_property()
|
||||
{
|
||||
return null_property_map< Key, Value >();
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user