Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:29:38

0001 // Boost.Bimap
0002 //
0003 // Copyright (c) 2006-2007 Matias Capeletto
0004 //
0005 // Distributed under the Boost Software License, Version 1.0.
0006 // (See accompanying file LICENSE_1_0.txt or copy at
0007 // http://www.boost.org/LICENSE_1_0.txt)
0008 
0009 /// \file detail/generate_view_binder.hpp
0010 /// \brief Define macros to help building the set type of definitions
0011 
0012 #ifndef BOOST_BIMAP_DETAIL_GENERATE_VIEW_BINDER_HPP
0013 #define BOOST_BIMAP_DETAIL_GENERATE_VIEW_BINDER_HPP
0014 
0015 #if defined(_MSC_VER)
0016 #pragma once
0017 #endif
0018 
0019 #include <boost/config.hpp>
0020 
0021 #include <boost/multi_index/tag.hpp>
0022 
0023 /*===========================================================================*/
0024 #define BOOST_BIMAP_GENERATE_MAP_VIEW_BINDER(                                 \
0025                                                                               \
0026     MAP_VIEW_TYPE                                                             \
0027                                                                               \
0028 )                                                                             \
0029                                                                               \
0030 template< class Tag, class BimapType >                                        \
0031 struct map_view_bind                                                          \
0032 {                                                                             \
0033     typedef MAP_VIEW_TYPE                                                     \
0034     <                                                                         \
0035         Tag,                                                                  \
0036         BimapType                                                             \
0037                                                                               \
0038     > type;                                                                   \
0039 };
0040 /*===========================================================================*/
0041 
0042 
0043 /*===========================================================================*/
0044 #define BOOST_BIMAP_GENERATE_SET_VIEW_BINDER(                                 \
0045                                                                               \
0046     SET_VIEW_TYPE                                                             \
0047                                                                               \
0048 )                                                                             \
0049                                                                               \
0050 template< class IndexType >                                                   \
0051 struct set_view_bind                                                          \
0052 {                                                                             \
0053     typedef SET_VIEW_TYPE<IndexType> type;                                    \
0054 };
0055 /*===========================================================================*/
0056 
0057 
0058 #endif // BOOST_BIMAP_DETAIL_GENERATE_VIEW_BINDER_HPP