Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:50:34

0001 //
0002 // Boost.Pointer Container
0003 //
0004 //  Copyright Thorsten Ottosen 2008. Use, modification and
0005 //  distribution is subject to the Boost Software License, Version
0006 //  1.0. (See accompanying file LICENSE_1_0.txt or copy at
0007 //  http://www.boost.org/LICENSE_1_0.txt)
0008 //
0009 // For more information, see http://www.boost.org/libs/ptr_container/
0010 //
0011 
0012 #ifndef BOOST_PTR_CONTAINER_DETAIL_META_FUNCTIONS
0013 #define BOOST_PTR_CONTAINER_DETAIL_META_FUNCTIONS
0014 
0015 #include <boost/mpl/identity.hpp>
0016 #include <boost/mpl/eval_if.hpp>
0017 
0018 namespace boost
0019 {
0020 namespace ptr_container_detail
0021 {
0022     template< class T >
0023     struct select_value_compare
0024     {
0025         typedef typename T::value_compare type;
0026     };
0027 
0028     template< class T >
0029     struct select_key_compare
0030     {
0031         typedef typename T::key_compare type;
0032     };
0033 
0034     template< class T >
0035     struct select_hasher
0036     {
0037         typedef typename T::hasher type;
0038     };
0039 
0040     template< class T >
0041     struct select_key_equal
0042     {
0043         typedef typename T::key_equal type;
0044     };
0045 
0046     template< class T >
0047     struct select_iterator
0048     {
0049         typedef typename T::iterator type;
0050     };
0051 
0052     template< class T >
0053     struct select_local_iterator
0054     {
0055         typedef typename T::local_iterator type;
0056     };
0057 
0058     template< class T >
0059     struct select_const_local_iterator
0060     {
0061         typedef typename T::const_local_iterator type;
0062     };
0063 }
0064 }
0065 
0066 #endif