]> git.sesse.net Git - casparcg/blob - dependencies/boost/boost/bimap/detail/is_set_type_of.hpp
Manually merged pull request #222
[casparcg] / dependencies / boost / boost / bimap / detail / is_set_type_of.hpp
1 // Boost.Bimap
2 //
3 // Copyright (c) 2006-2007 Matias Capeletto
4 //
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)
8
9 /// \file detail/is_set_type_of.hpp
10 /// \brief Is set type of and is set type of relation metafunctions.
11
12 #ifndef BOOST_BIMAP_DETAIL_IS_SET_TYPE_OF_HPP
13 #define BOOST_BIMAP_DETAIL_IS_SET_TYPE_OF_HPP
14
15 #if defined(_MSC_VER) && (_MSC_VER>=1200)
16 #pragma once
17 #endif
18
19 #include <boost/config.hpp>
20
21 #include <boost/type_traits/is_base_of.hpp>
22 #include <boost/bimap/detail/concept_tags.hpp>
23
24 /** \struct boost::bimaps::detail::is_set_type_of
25
26 \brief Type trait to check if a class is a set_type_of specification
27
28 \code
29 template< class Type >
30 struct is_set_type_of : {true_|false_} {};
31 \endcode
32                                                                         **/
33
34 /** \struct boost::bimaps::detail::is_set_type_of_relation
35
36 \brief Type trait to check if a class is a set_type_of_relation specification
37
38 \code
39 template< class Type >
40 struct is_set_type_of_relation : {true_|false_} {};
41 \endcode
42
43                                                                                **/
44
45 #ifndef BOOST_BIMAP_DOXYGEN_WILL_NOT_PROCESS_THE_FOLLOWING_LINES
46
47 namespace boost {
48 namespace bimaps {
49 namespace detail {
50
51 template< class Type >
52 struct is_set_type_of :
53     is_base_of< set_type_of_tag, Type > {};
54
55 template< class Type >
56 struct is_set_type_of_relation :
57     is_base_of< set_type_of_relation_tag, Type > {};
58
59 } // namespace detail
60 } // namespace bimaps
61 } // namespace boost
62
63 #endif // BOOST_BIMAP_DOXYGEN_WILL_NOT_PROCESS_THE_FOLLOWING_LINES
64
65 #endif // BOOST_BIMAP_DETAIL_IS_SET_TYPE_OF_HPP
66