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 tags/support/is_tagged.hpp
10 /// \brief type_traits extension
12 #ifndef BOOST_BIMAP_TAGS_SUPPORT_IS_TAGGED_HPP
13 #define BOOST_BIMAP_TAGS_SUPPORT_IS_TAGGED_HPP
15 #if defined(_MSC_VER) && (_MSC_VER>=1200)
19 #include <boost/config.hpp>
21 #include <boost/mpl/bool.hpp>
22 #include <boost/bimap/tags/tagged.hpp>
24 /** \struct boost::bimaps::tags::support::is_tagged
25 \brief Type trait to check if a type is tagged.
28 template< class Type >
31 typedef {mpl::true_/mpl::false_} type;
38 #ifndef BOOST_BIMAP_DOXYGEN_WILL_NOT_PROCESS_THE_FOLLOWING_LINES
46 // is_tagged metafunction
48 template< class Type >
50 ::boost::mpl::false_ {};
52 template< class Type, class Tag >
53 struct is_tagged< tagged< Type, Tag > > :
54 ::boost::mpl::true_ {};
56 } // namespace support
61 #endif // BOOST_BIMAP_DOXYGEN_WILL_NOT_PROCESS_THE_FOLLOWING_LINES
63 #endif // BOOST_BIMAP_TAGS_SUPPORT_IS_TAGGED_HPP