1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #ifndef BOOST_GRAPH_NULL_PROPERTY_HPP
- #define BOOST_GRAPH_NULL_PROPERTY_HPP
- #include <boost/property_map/property_map.hpp>
- namespace boost
- {
- 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 K, typename V >
- void put(
- null_property_map< K, V >& , const K& , const V& )
- {
- }
- template < typename Key, typename Value >
- inline null_property_map< Key, Value > make_null_property()
- {
- return null_property_map< Key, Value >();
- }
- }
- #endif
|