File indexing completed on 2025-01-18 09:29:37
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef BOOST_BIMAP_CONTAINER_ADAPTOR_DETAIL_KEY_EXTRACTOR_HPP
0013 #define BOOST_BIMAP_CONTAINER_ADAPTOR_DETAIL_KEY_EXTRACTOR_HPP
0014
0015 #if defined(_MSC_VER)
0016 #pragma once
0017 #endif
0018
0019 #include <boost/config.hpp>
0020
0021 namespace boost {
0022 namespace bimaps {
0023 namespace container_adaptor {
0024 namespace detail {
0025
0026
0027
0028 template < class T >
0029 struct key_from_pair_extractor
0030 {
0031 typedef T argument_type;
0032 typedef BOOST_DEDUCED_TYPENAME T::first_type result_type;
0033
0034 result_type operator()( const T & p ) { return p.first; }
0035 };
0036
0037 }
0038 }
0039 }
0040 }
0041
0042
0043 #endif
0044
0045