123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- #ifndef BOOST_STRING_STD_ROPE_TRAITS_HPP
- #define BOOST_STRING_STD_ROPE_TRAITS_HPP
- #include <boost/algorithm/string/yes_no_type.hpp>
- #include <rope>
- #include <boost/algorithm/string/sequence_traits.hpp>
- namespace boost {
- namespace algorithm {
- #ifdef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
-
- template<typename T, typename TraitsT, typename AllocT>
- yes_type has_native_replace_tester( const std::rope<T, TraitsT, AllocT>* );
-
- template<typename T, typename TraitsT, typename AllocT>
- yes_type has_stable_iterators_tester( const std::rope<T, TraitsT, AllocT>* );
-
- template<typename T, typename TraitsT, typename AllocT>
- yes_type has_const_time_insert_tester( const std::rope<T, TraitsT, AllocT>* );
-
- template<typename T, typename TraitsT, typename AllocT>
- yes_type has_const_time_erase_tester( const std::rope<T, TraitsT, AllocT>* );
- #else
-
-
- template<typename T, typename TraitsT, typename AllocT>
- class has_native_replace< std::rope<T,TraitsT,AllocT> >
- {
- public:
- #if BOOST_WORKAROUND( __IBMCPP__, <= 600 )
- enum { value = true };
- #else
- BOOST_STATIC_CONSTANT(bool, value=true);
- #endif
- typedef mpl::bool_<value> type;
- };
-
- template<typename T, typename TraitsT, typename AllocT>
- class has_stable_iterators< std::rope<T,TraitsT,AllocT> >
- {
- public:
- #if BOOST_WORKAROUND( __IBMCPP__, <= 600 )
- enum { value = true };
- #else
- BOOST_STATIC_CONSTANT(bool, value=true);
- #endif
- typedef mpl::bool_<value> type;
- };
-
- template<typename T, typename TraitsT, typename AllocT>
- class has_const_time_insert< std::rope<T,TraitsT,AllocT> >
- {
- public:
- #if BOOST_WORKAROUND( __IBMCPP__, <= 600 )
- enum { value = true };
- #else
- BOOST_STATIC_CONSTANT(bool, value=true);
- #endif
- typedef mpl::bool_<value> type;
- };
-
- template<typename T, typename TraitsT, typename AllocT>
- class has_const_time_erase< std::rope<T,TraitsT,AllocT> >
- {
- public:
- #if BOOST_WORKAROUND( __IBMCPP__, <= 600 )
- enum { value = true };
- #else
- BOOST_STATIC_CONSTANT(bool, value=true);
- #endif
- typedef mpl::bool_<value> type;
- };
- #endif
- }
- }
- #endif
|