$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-users] identity_property_map
From: Andreas Fabri (andreas.fabri_at_[hidden])
Date: 2009-04-22 11:09:19
Hello,
Are the code and the documentation of the identity_property_map in sync.
The documentation says that the class identity_property_map
has a template member function operator[](T t)  that  for any type T,
just returns t.
In the .hpp file though  I find
  //=========================================================================
   // A property map that applies the identity function to integers
   struct identity_property_map
     : public boost::put_get_helper<std::size_t,
         identity_property_map>
   {
     typedef std::size_t key_type;
     typedef std::size_t value_type;
     typedef std::size_t reference;
     typedef boost::readable_property_map_tag category;
     inline value_type operator[](const key_type& v) const { return v; }
   };
Best regards,
andreas