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/is_set_type_of.hpp
10 /// \brief Is set type of and is set type of relation metafunctions.
12 #ifndef BOOST_BIMAP_DETAIL_IS_SET_TYPE_OF_HPP
13 #define BOOST_BIMAP_DETAIL_IS_SET_TYPE_OF_HPP
15 #if defined(_MSC_VER) && (_MSC_VER>=1200)
19 #include <boost/config.hpp>
21 #include <boost/type_traits/is_base_of.hpp>
22 #include <boost/bimap/detail/concept_tags.hpp>
24 /** \struct boost::bimaps::detail::is_set_type_of
26 \brief Type trait to check if a class is a set_type_of specification
29 template< class Type >
30 struct is_set_type_of : {true_|false_} {};
34 /** \struct boost::bimaps::detail::is_set_type_of_relation
36 \brief Type trait to check if a class is a set_type_of_relation specification
39 template< class Type >
40 struct is_set_type_of_relation : {true_|false_} {};
45 #ifndef BOOST_BIMAP_DOXYGEN_WILL_NOT_PROCESS_THE_FOLLOWING_LINES
51 template< class Type >
52 struct is_set_type_of :
53 is_base_of< set_type_of_tag, Type > {};
55 template< class Type >
56 struct is_set_type_of_relation :
57 is_base_of< set_type_of_relation_tag, Type > {};
63 #endif // BOOST_BIMAP_DOXYGEN_WILL_NOT_PROCESS_THE_FOLLOWING_LINES
65 #endif // BOOST_BIMAP_DETAIL_IS_SET_TYPE_OF_HPP