1 // Boost string_algo library list_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_LIST_TRAITS_HPP
12 #define BOOST_STRING_STD_LIST_TRAITS_HPP
14 #include <boost/algorithm/string/yes_no_type.hpp>
16 #include <boost/algorithm/string/sequence_traits.hpp>
21 // std::list<> traits -----------------------------------------------//
24 // stable iterators trait
25 template<typename T, typename AllocT>
26 class has_stable_iterators< ::std::list<T,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_<has_stable_iterators<T>::value> type;
37 // const time insert trait
38 template<typename T, typename AllocT>
39 class has_const_time_insert< ::std::list<T,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_<has_const_time_insert<T>::value> type;
50 // const time erase trait
51 template<typename T, typename AllocT>
52 class has_const_time_erase< ::std::list<T,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_<has_const_time_erase<T>::value> type;
64 } // namespace algorithm
68 #endif // BOOST_STRING_STD_LIST_TRAITS_HPP