1 // Boost string_algo library string_traits.hpp header file ---------------------------//
3 // Copyright Pavol Droba 2002-2003.
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 // See http://www.boost.org/ for updates, documentation, and revision history.
11 #ifndef BOOST_STRING_STD_ROPE_TRAITS_HPP
12 #define BOOST_STRING_STD_ROPE_TRAITS_HPP
14 #include <boost/algorithm/string/yes_no_type.hpp>
16 #include <boost/algorithm/string/sequence_traits.hpp>
21 // SGI's std::rope<> traits -----------------------------------------------//
24 // native replace trait
25 template<typename T, typename TraitsT, typename AllocT>
26 class has_native_replace< std::rope<T,TraitsT,AllocT> >
29 #if BOOST_WORKAROUND( __IBMCPP__, <= 600 )
30 enum { value = true };
32 BOOST_STATIC_CONSTANT(bool, value=true);
33 #endif // BOOST_WORKAROUND( __IBMCPP__, <= 600 )
34 typedef mpl::bool_<value> type;
37 // stable iterators trait
38 template<typename T, typename TraitsT, typename AllocT>
39 class has_stable_iterators< std::rope<T,TraitsT,AllocT> >
42 #if BOOST_WORKAROUND( __IBMCPP__, <= 600 )
43 enum { value = true };
45 BOOST_STATIC_CONSTANT(bool, value=true);
46 #endif // BOOST_WORKAROUND( __IBMCPP__, <= 600 )
47 typedef mpl::bool_<value> type;
50 // const time insert trait
51 template<typename T, typename TraitsT, typename AllocT>
52 class has_const_time_insert< std::rope<T,TraitsT,AllocT> >
55 #if BOOST_WORKAROUND( __IBMCPP__, <= 600 )
56 enum { value = true };
58 BOOST_STATIC_CONSTANT(bool, value=true);
59 #endif // BOOST_WORKAROUND( __IBMCPP__, <= 600 )
60 typedef mpl::bool_<value> type;
63 // const time erase trait
64 template<typename T, typename TraitsT, typename AllocT>
65 class has_const_time_erase< std::rope<T,TraitsT,AllocT> >
68 #if BOOST_WORKAROUND( __IBMCPP__, <= 600 )
69 enum { value = true };
71 BOOST_STATIC_CONSTANT(bool, value=true);
72 #endif // BOOST_WORKAROUND( __IBMCPP__, <= 600 )
73 typedef mpl::bool_<value> type;
77 } // namespace algorithm
81 #endif // BOOST_STRING_ROPE_TRAITS_HPP