1 //////////////////////////////////////////////////////////////////////////////
3 // (C) Copyright Ion Gaztanaga 2005-2013.
5 // Distributed under the Boost Software License, Version 1.0.
6 // (See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
9 // See http://www.boost.org/libs/container for documentation.
11 //////////////////////////////////////////////////////////////////////////////
13 #ifndef BOOST_CONTAINER_CONTAINER_DETAIL_MPL_HPP
14 #define BOOST_CONTAINER_CONTAINER_DETAIL_MPL_HPP
16 #ifndef BOOST_CONFIG_HPP
17 # include <boost/config.hpp>
20 #if defined(BOOST_HAS_PRAGMA_ONCE)
24 #include <boost/container/detail/config_begin.hpp>
25 #include <boost/container/detail/workaround.hpp>
26 #include <boost/move/detail/type_traits.hpp>
27 #include <boost/intrusive/detail/mpl.hpp>
33 namespace container_detail {
35 using boost::move_detail::integral_constant;
36 using boost::move_detail::true_type;
37 using boost::move_detail::false_type;
38 using boost::move_detail::enable_if_c;
39 using boost::move_detail::enable_if;
40 using boost::move_detail::enable_if_convertible;
41 using boost::move_detail::disable_if_c;
42 using boost::move_detail::disable_if;
43 using boost::move_detail::disable_if_convertible;
44 using boost::move_detail::is_convertible;
45 using boost::move_detail::if_c;
46 using boost::move_detail::if_;
47 using boost::move_detail::identity;
48 using boost::move_detail::bool_;
49 using boost::move_detail::true_;
50 using boost::move_detail::false_;
51 using boost::move_detail::yes_type;
52 using boost::move_detail::no_type;
53 using boost::move_detail::bool_;
54 using boost::move_detail::true_;
55 using boost::move_detail::false_;
56 using boost::move_detail::unvoid_ref;
57 using boost::move_detail::and_;
58 using boost::move_detail::or_;
59 using boost::move_detail::not_;
60 using boost::move_detail::enable_if_and;
61 using boost::move_detail::disable_if_and;
62 using boost::move_detail::enable_if_or;
63 using boost::move_detail::disable_if_or;
65 template <class FirstType>
68 typedef FirstType type;
71 const type& operator()(const T& x) const
75 type& operator()(T& x)
76 { return const_cast<type&>(x.first); }
79 } //namespace container_detail {
80 } //namespace container {
83 #include <boost/container/detail/config_end.hpp>
85 #endif //#ifndef BOOST_CONTAINER_CONTAINER_DETAIL_MPL_HPP