Chris@16: // Boost.Bimap Chris@16: // Chris@16: // Copyright (c) 2006-2007 Matias Capeletto Chris@16: // Chris@16: // Distributed under the Boost Software License, Version 1.0. Chris@16: // (See accompanying file LICENSE_1_0.txt or copy at Chris@16: // http://www.boost.org/LICENSE_1_0.txt) Chris@16: Chris@16: /// \file property_map/set_support.hpp Chris@16: /// \brief Support for the property map concept. Chris@16: Chris@16: #ifndef BOOST_BIMAP_PROPERTY_MAP_SET_SUPPORT_HPP Chris@16: #define BOOST_BIMAP_PROPERTY_MAP_SET_SUPPORT_HPP Chris@16: Chris@101: #if defined(_MSC_VER) Chris@16: #pragma once Chris@16: #endif Chris@16: Chris@16: #include Chris@16: Chris@16: #include Chris@16: #include Chris@16: #include Chris@16: #include Chris@16: Chris@16: #ifndef BOOST_BIMAP_DOXYGEN_WILL_NOT_PROCESS_THE_FOLLOWING_LINES Chris@16: Chris@16: namespace boost { Chris@16: Chris@16: template< class Tag, class Bimap > Chris@16: struct property_traits< ::boost::bimaps::views::map_view > Chris@16: { Chris@16: typedef BOOST_DEDUCED_TYPENAME Chris@16: ::boost::bimaps::support::data_type_by::type value_type; Chris@16: typedef BOOST_DEDUCED_TYPENAME Chris@16: ::boost::bimaps::support:: key_type_by::type key_type; Chris@16: Chris@16: typedef readable_property_map_tag category; Chris@16: }; Chris@16: Chris@16: Chris@16: template< class Tag, class Bimap > Chris@16: const BOOST_DEDUCED_TYPENAME ::boost::bimaps::support::data_type_by::type & Chris@16: get(const ::boost::bimaps::views::map_view & m, Chris@16: const BOOST_DEDUCED_TYPENAME Chris@16: ::boost::bimaps::support::key_type_by::type & key) Chris@16: { Chris@16: return m.at(key); Chris@16: } Chris@16: Chris@16: } // namespace boost Chris@16: Chris@16: #endif // BOOST_BIMAP_DOXYGEN_WILL_NOT_PROCESS_THE_FOLLOWING_LINES Chris@16: Chris@16: #endif // BOOST_BIMAP_PROPERTY_MAP_SET_SUPPORT_HPP