3 // Copyright (c) 2006-2007 Matias Capeletto
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 /// \file detail/generate_view_binder.hpp
10 /// \brief Define macros to help building the set type of definitions
12 #ifndef BOOST_BIMAP_DETAIL_GENERATE_VIEW_BINDER_HPP
13 #define BOOST_BIMAP_DETAIL_GENERATE_VIEW_BINDER_HPP
15 #if defined(_MSC_VER) && (_MSC_VER>=1200)
19 #include <boost/config.hpp>
21 #include <boost/multi_index/tag.hpp>
23 /*===========================================================================*/
24 #define BOOST_BIMAP_GENERATE_MAP_VIEW_BINDER( \
30 template< class Tag, class BimapType > \
31 struct map_view_bind \
33 typedef MAP_VIEW_TYPE \
40 /*===========================================================================*/
43 /*===========================================================================*/
44 #define BOOST_BIMAP_GENERATE_SET_VIEW_BINDER( \
50 template< class IndexType > \
51 struct set_view_bind \
53 typedef SET_VIEW_TYPE<IndexType> type; \
55 /*===========================================================================*/
58 #endif // BOOST_BIMAP_DETAIL_GENERATE_VIEW_BINDER_HPP