]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/bimap/include/boost/bimap/detail/is_set_type_of.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / bimap / include / boost / bimap / detail / is_set_type_of.hpp
CommitLineData
7c673cae
FG
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)
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
29template< class Type >
30struct 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
39template< class Type >
40struct is_set_type_of_relation : {true_|false_} {};
41\endcode
42
43 **/
44
45#ifndef BOOST_BIMAP_DOXYGEN_WILL_NOT_PROCESS_THE_FOLLOWING_LINES
46
47namespace boost {
48namespace bimaps {
49namespace detail {
50
51template< class Type >
52struct is_set_type_of :
53 is_base_of< set_type_of_tag, Type > {};
54
55template< class Type >
56struct 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