// Boost string_algo library string_traits.hpp header file ---------------------------// // Copyright Pavol Droba 2002-2003. // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org/ for updates, documentation, and revision history. #ifndef BOOST_STRING_STD_ROPE_TRAITS_HPP #define BOOST_STRING_STD_ROPE_TRAITS_HPP #include #include #include namespace boost { namespace algorithm { // SGI's std::rope<> traits -----------------------------------------------// #ifdef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION // native replace tester template yes_type has_native_replace_tester( const std::rope* ); // stable iterators tester template yes_type has_stable_iterators_tester( const std::rope* ); // const time insert tester template yes_type has_const_time_insert_tester( const std::rope* ); // const time erase tester template yes_type has_const_time_erase_tester( const std::rope* ); #else // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION // native replace trait template class has_native_replace< std::rope > { public: #if BOOST_WORKAROUND( __IBMCPP__, <= 600 ) enum { value = true }; #else BOOST_STATIC_CONSTANT(bool, value=true); #endif // BOOST_WORKAROUND( __IBMCPP__, <= 600 ) typedef mpl::bool_ type; }; // stable iterators trait template class has_stable_iterators< std::rope > { public: #if BOOST_WORKAROUND( __IBMCPP__, <= 600 ) enum { value = true }; #else BOOST_STATIC_CONSTANT(bool, value=true); #endif // BOOST_WORKAROUND( __IBMCPP__, <= 600 ) typedef mpl::bool_ type; }; // const time insert trait template class has_const_time_insert< std::rope > { public: #if BOOST_WORKAROUND( __IBMCPP__, <= 600 ) enum { value = true }; #else BOOST_STATIC_CONSTANT(bool, value=true); #endif // BOOST_WORKAROUND( __IBMCPP__, <= 600 ) typedef mpl::bool_ type; }; // const time erase trait template class has_const_time_erase< std::rope > { public: #if BOOST_WORKAROUND( __IBMCPP__, <= 600 ) enum { value = true }; #else BOOST_STATIC_CONSTANT(bool, value=true); #endif // BOOST_WORKAROUND( __IBMCPP__, <= 600 ) typedef mpl::bool_ type; }; #endif } // namespace algorithm } // namespace boost #endif // BOOST_STRING_ROPE_TRAITS_HPP