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_relation_binder.hpp
10 /// \brief Define macros to help building the set type of definitions
12 #ifndef BOOST_BIMAP_DETAIL_GENERATE_RELATION_BINDER_HPP
13 #define BOOST_BIMAP_DETAIL_GENERATE_RELATION_BINDER_HPP
15 #if defined(_MSC_VER) && (_MSC_VER>=1200)
19 #include <boost/config.hpp>
21 #include <boost/mpl/apply.hpp>
23 /*===========================================================================*/
24 #define BOOST_BIMAP_GENERATE_RELATION_BINDER_0CP( \
29 template< class Relation > \
32 typedef SET_TYPE_OF<Relation> type; \
35 /*===========================================================================*/
39 /*===========================================================================*/
40 #define BOOST_BIMAP_GENERATE_RELATION_BINDER_1CP( \
46 template< class Relation > \
52 BOOST_DEDUCED_TYPENAME mpl::apply<CP1, \
53 BOOST_DEDUCED_TYPENAME Relation::storage_base >::type \
58 /*===========================================================================*/
62 /*===========================================================================*/
63 #define BOOST_BIMAP_GENERATE_RELATION_BINDER_2CP( \
70 template< class Relation > \
76 BOOST_DEDUCED_TYPENAME mpl::apply<CP1, \
77 BOOST_DEDUCED_TYPENAME Relation::storage_base >::type, \
78 BOOST_DEDUCED_TYPENAME mpl::apply<CP2, \
79 BOOST_DEDUCED_TYPENAME Relation::storage_base >::type \
84 /*===========================================================================*/
88 #endif // BOOST_BIMAP_DETAIL_GENERATE_RELATION_BINDER_HPP