1 //////////////////////////////////////////////////////////////////////////////
3 // (C) Copyright Ion Gaztanaga 2005-2013. Distributed under the Boost
4 // Software License, Version 1.0. (See accompanying file
5 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 // See http://www.boost.org/libs/container for documentation.
9 //////////////////////////////////////////////////////////////////////////////
10 #ifndef BOOST_CONTAINER_PAIR_KEY_MAPPED_OF_VALUE_HPP
11 #define BOOST_CONTAINER_PAIR_KEY_MAPPED_OF_VALUE_HPP
13 #ifndef BOOST_CONFIG_HPP
14 # include <boost/config.hpp>
17 #if defined(BOOST_HAS_PRAGMA_ONCE)
21 #include <boost/container/detail/config_begin.hpp>
22 #include <boost/container/detail/workaround.hpp>
27 template<class Key, class Mapped>
28 struct pair_key_mapped_of_value
31 typedef Mapped mapped_type;
34 const key_type & key_of_value(const Pair &p) const
38 const mapped_type & mapped_of_value(const Pair &p) const
42 key_type & key_of_value(Pair &p) const
43 { return const_cast<key_type&>(p.first); }
46 mapped_type & mapped_of_value(Pair &p) const
53 #include <boost/container/detail/config_end.hpp>
55 #endif // BOOST_CONTAINER_PAIR_KEY_MAPPED_OF_VALUE_HPP