Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:28:24

0001 //  Boost string_algo library string_traits.hpp header file  ---------------------------//
0002 
0003 //  Copyright Pavol Droba 2002-2003.
0004 //
0005 // Distributed under the Boost Software License, Version 1.0.
0006 //    (See accompanying file LICENSE_1_0.txt or copy at
0007 //          http://www.boost.org/LICENSE_1_0.txt)
0008 
0009 //  See http://www.boost.org/ for updates, documentation, and revision history.
0010 
0011 #ifndef BOOST_STRING_STD_ROPE_TRAITS_HPP
0012 #define BOOST_STRING_STD_ROPE_TRAITS_HPP
0013 
0014 #include <boost/algorithm/string/yes_no_type.hpp>
0015 #include <rope>
0016 #include <boost/algorithm/string/sequence_traits.hpp>
0017 
0018 namespace boost {
0019     namespace algorithm {
0020 
0021 //  SGI's std::rope<> traits  -----------------------------------------------//
0022 
0023     
0024     // native replace trait
0025         template<typename T, typename TraitsT, typename AllocT>
0026         class has_native_replace< std::rope<T,TraitsT,AllocT> >
0027         {
0028         public:
0029 #if BOOST_WORKAROUND( __IBMCPP__, <= 600 )
0030             enum { value = true };
0031 #else
0032             BOOST_STATIC_CONSTANT(bool, value=true);
0033 #endif // BOOST_WORKAROUND( __IBMCPP__, <= 600 )
0034             typedef mpl::bool_<value> type;     
0035         };
0036 
0037     // stable iterators trait
0038         template<typename T, typename TraitsT, typename AllocT>
0039         class has_stable_iterators< std::rope<T,TraitsT,AllocT> >
0040         {
0041         public:
0042 #if BOOST_WORKAROUND( __IBMCPP__, <= 600 )
0043             enum { value = true };
0044 #else
0045             BOOST_STATIC_CONSTANT(bool, value=true);
0046 #endif // BOOST_WORKAROUND( __IBMCPP__, <= 600 )
0047             typedef mpl::bool_<value> type;     
0048         };
0049 
0050     // const time insert trait
0051         template<typename T, typename TraitsT, typename AllocT>
0052         class has_const_time_insert< std::rope<T,TraitsT,AllocT> >
0053         {
0054         public:
0055 #if BOOST_WORKAROUND( __IBMCPP__, <= 600 )
0056             enum { value = true };
0057 #else
0058             BOOST_STATIC_CONSTANT(bool, value=true);
0059 #endif // BOOST_WORKAROUND( __IBMCPP__, <= 600 )
0060             typedef mpl::bool_<value> type;     
0061         };
0062 
0063     // const time erase trait
0064         template<typename T, typename TraitsT, typename AllocT>
0065         class has_const_time_erase< std::rope<T,TraitsT,AllocT> >
0066         {
0067         public:
0068 #if BOOST_WORKAROUND( __IBMCPP__, <= 600 )
0069             enum { value = true };
0070 #else
0071             BOOST_STATIC_CONSTANT(bool, value=true);
0072 #endif // BOOST_WORKAROUND( __IBMCPP__, <= 600 )
0073             typedef mpl::bool_<value> type;     
0074         };
0075 
0076 
0077     } // namespace algorithm
0078 } // namespace boost
0079 
0080 
0081 #endif  // BOOST_STRING_ROPE_TRAITS_HPP