]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/bimap/include/boost/bimap/tags/support/is_tagged.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / bimap / include / boost / bimap / tags / support / is_tagged.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 tags/support/is_tagged.hpp
10/// \brief type_traits extension
11
12#ifndef BOOST_BIMAP_TAGS_SUPPORT_IS_TAGGED_HPP
13#define BOOST_BIMAP_TAGS_SUPPORT_IS_TAGGED_HPP
14
15#if defined(_MSC_VER)
16#pragma once
17#endif
18
19#include <boost/config.hpp>
20
21#include <boost/mpl/bool.hpp>
22#include <boost/bimap/tags/tagged.hpp>
23
24/** \struct boost::bimaps::tags::support::is_tagged
25\brief Type trait to check if a type is tagged.
26
27\code
28template< class Type >
29struct is_tagged
30{
31 typedef {mpl::true_/mpl::false_} type;
32};
33\endcode
34
35See also tagged.
36 **/
37
38#ifndef BOOST_BIMAP_DOXYGEN_WILL_NOT_PROCESS_THE_FOLLOWING_LINES
39
40namespace boost {
41namespace bimaps {
42namespace tags {
43namespace support {
44
45
46// is_tagged metafunction
47
48template< class Type >
49struct is_tagged :
50 ::boost::mpl::false_ {};
51
52template< class Type, class Tag >
53struct is_tagged< tagged< Type, Tag > > :
54 ::boost::mpl::true_ {};
55
56} // namespace support
57} // namespace tags
58} // namespace bimaps
59} // namespace boost
60
61#endif // BOOST_BIMAP_DOXYGEN_WILL_NOT_PROCESS_THE_FOLLOWING_LINES
62
63#endif // BOOST_BIMAP_TAGS_SUPPORT_IS_TAGGED_HPP
64