Add SCons configure checks
[senf.git] / boost_ext / boost / bimap / tags / support / is_tagged.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 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) && (_MSC_VER>=1200)
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
28 template< class Type >
29 struct is_tagged
30 {
31     typedef {mpl::true_/mpl::false_} type;
32 };
33 \endcode
34
35 See also tagged.
36                                                                                 **/
37
38 #ifndef BOOST_BIMAP_DOXYGEN_WILL_NOT_PROCESS_THE_FOLLOWING_LINES
39
40 namespace boost {
41 namespace bimaps {
42 namespace tags {
43 namespace support {
44
45
46 // is_tagged metafunction
47
48 template< class Type >
49 struct is_tagged :
50     ::boost::mpl::false_ {};
51
52 template< class Type, class Tag >
53 struct 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