Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:38:20

0001 /*-----------------------------------------------------------------------------+
0002 Copyright (c) 2007-2010: Joachim Faulhaber
0003 +------------------------------------------------------------------------------+
0004    Distributed under the Boost Software License, Version 1.0.
0005       (See accompanying file LICENCE.txt or copy at
0006            http://www.boost.org/LICENSE_1_0.txt)
0007 +-----------------------------------------------------------------------------*/
0008 #ifndef BOOST_ICL_DETAIL_STD_SET_HPP_JOFA_101007
0009 #define BOOST_ICL_DETAIL_STD_SET_HPP_JOFA_101007
0010 
0011 #include <set>
0012 #include <boost/config.hpp>
0013 #include <boost/icl/type_traits/type_to_string.hpp>
0014 #include <boost/icl/type_traits/is_set.hpp>
0015 
0016 
0017 namespace boost{namespace icl
0018 {
0019 
0020 template <class Type>
0021 struct is_set<std::set<Type> >
0022 { 
0023     typedef is_set<std::set<Type> > type;
0024     BOOST_STATIC_CONSTANT(bool, value = true); 
0025 };
0026 
0027 
0028 template <class Type>
0029 struct type_to_string<std::set<Type> >
0030 {
0031     static std::string apply()
0032     { return "set<"+ type_to_string<Type>::apply() +">"; }
0033 };
0034 
0035 template <class Type>
0036 struct type_to_string<std::set<Type, std::greater<Type> > >
0037 {
0038     static std::string apply()
0039     { return "set<"+ type_to_string<Type>::apply() +" g>"; }
0040 };
0041 
0042 }} // namespace icl boost
0043 
0044 #endif // BOOST_ICL_DETAIL_STD_SET_HPP_JOFA_101007
0045