Boost C++ Libraries Boost.Bimap Home Libraries People FAQ More

PrevUpHomeNext

is_set_type_of.hpp

Go to the documentation of this file.
00001 // Boost.Bimap
00002 //
00003 // Copyright (c) 2006-2007 Matias Capeletto
00004 //
00005 // Distributed under the Boost Software License, Version 1.0.
00006 // (See accompanying file LICENSE_1_0.txt or copy at
00007 // http://www.boost.org/LICENSE_1_0.txt)
00008 
00009 /// \file detail/is_set_type_of.hpp
00010 /// \brief Is set type of and is set type of relation metafunctions.
00011 
00012 #ifndef BOOST_BIMAP_DETAIL_IS_SET_TYPE_OF_HPP
00013 #define BOOST_BIMAP_DETAIL_IS_SET_TYPE_OF_HPP
00014 
00015 #if defined(_MSC_VER) && (_MSC_VER>=1200)
00016 #pragma once
00017 #endif
00018 
00019 #include <boost/config.hpp>
00020 
00021 #include <boost/type_traits/is_base_of.hpp>
00022 #include <boost/bimap/detail/concept_tags.hpp>
00023 
00024 /** \struct boost::bimaps::detail::is_set_type_of
00025 
00026 \brief Type trait to check if a class is a set_type_of specification
00027 
00028 \code
00029 template< class Type >
00030 struct is_set_type_of : {true_|false_} {};
00031 \endcode
00032                                                                         **/
00033 
00034 /** \struct boost::bimaps::detail::is_set_type_of_relation
00035 
00036 \brief Type trait to check if a class is a set_type_of_relation specification
00037 
00038 \code
00039 template< class Type >
00040 struct is_set_type_of_relation : {true_|false_} {};
00041 \endcode
00042 
00043                                                                                **/
00044 
00045 #ifndef BOOST_BIMAP_DOXYGEN_WILL_NOT_PROCESS_THE_FOLLOWING_LINES
00046 
00047 namespace boost {
00048 namespace bimaps {
00049 namespace detail {
00050 
00051 template< class Type >
00052 struct is_set_type_of :
00053     is_base_of< set_type_of_tag, Type > {};
00054 
00055 template< class Type >
00056 struct is_set_type_of_relation :
00057     is_base_of< set_type_of_relation_tag, Type > {};
00058 
00059 } // namespace detail
00060 } // namespace bimaps
00061 } // namespace boost
00062 
00063 #endif // BOOST_BIMAP_DOXYGEN_WILL_NOT_PROCESS_THE_FOLLOWING_LINES
00064 
00065 #endif // BOOST_BIMAP_DETAIL_IS_SET_TYPE_OF_HPP
00066 
Copyright 2006 Matias Capeletto

PrevUpHomeNext