New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
slist_traits.hpp in vendors/XIOS/current/extern/boost/include/boost/algorithm/string/std – NEMO

source: vendors/XIOS/current/extern/boost/include/boost/algorithm/string/std/slist_traits.hpp @ 3428

Last change on this file since 3428 was 3428, checked in by rblod, 12 years ago

importing initial XIOS vendor drop

File size: 2.8 KB
Line 
1//  Boost string_algo library slist_traits.hpp header file  ---------------------------//
2
3//  Copyright Pavol Droba 2002-2003.
4//
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)
8
9//  See http://www.boost.org/ for updates, documentation, and revision history.
10
11#ifndef BOOST_STRING_STD_SLIST_TRAITS_HPP
12#define BOOST_STRING_STD_SLIST_TRAITS_HPP
13
14#include <boost/algorithm/string/config.hpp>
15#include <boost/algorithm/string/yes_no_type.hpp>
16#include BOOST_SLIST_HEADER
17#include <boost/algorithm/string/sequence_traits.hpp>
18
19namespace boost {
20    namespace algorithm {
21
22//  SGI's std::slist<> traits  -----------------------------------------------//
23
24#ifdef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
25
26        // stable iterators tester
27        template<typename T, typename AllocT>
28        yes_type has_stable_iterators_tester( const BOOST_STD_EXTENSION_NAMESPACE::slist<T,AllocT>* );
29
30        // const time insert tester
31        template<typename T, typename AllocT>
32        yes_type has_const_time_insert_tester( const BOOST_STD_EXTENSION_NAMESPACE::slist<T,AllocT>* );
33
34        // const time erase tester
35        template<typename T, typename AllocT>
36        yes_type has_const_time_erase_tester( const BOOST_STD_EXTENSION_NAMESPACE::slist<T,AllocT>* );
37
38#else // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
39
40    // stable iterators trait
41        template<typename T, typename AllocT>
42        class has_stable_iterators< BOOST_STD_EXTENSION_NAMESPACE::slist<T,AllocT> >
43        {
44        public:
45#if BOOST_WORKAROUND( __IBMCPP__, <= 600 )
46            enum { value = true };
47#else
48            BOOST_STATIC_CONSTANT(bool, value=true);
49#endif // BOOST_WORKAROUND( __IBMCPP__, <= 600 )
50            typedef mpl::bool_<has_stable_iterators<T>::value> type;
51        };
52
53    // const time insert trait
54        template<typename T, typename AllocT>
55        class has_const_time_insert< BOOST_STD_EXTENSION_NAMESPACE::slist<T,AllocT> >
56        {
57        public:
58#if BOOST_WORKAROUND( __IBMCPP__, <= 600 )
59            enum { value = true };
60#else
61            BOOST_STATIC_CONSTANT(bool, value=true);
62#endif // BOOST_WORKAROUND( __IBMCPP__, <= 600 )
63            typedef mpl::bool_<has_const_time_insert<T>::value> type;
64        };
65
66    // const time erase trait
67        template<typename T, typename AllocT>
68        class has_const_time_erase< BOOST_STD_EXTENSION_NAMESPACE::slist<T,AllocT> >
69        {
70        public:
71#if BOOST_WORKAROUND( __IBMCPP__, <= 600 )
72            enum { value = true };
73#else
74            BOOST_STATIC_CONSTANT(bool, value=true);
75#endif // BOOST_WORKAROUND( __IBMCPP__, <= 600 )
76            typedef mpl::bool_<has_const_time_erase<T>::value> type;
77        };
78#endif
79
80
81    } // namespace algorithm
82} // namespace boost
83
84
85#endif  // BOOST_STRING_STD_LIST_TRAITS_HPP
Note: See TracBrowser for help on using the repository browser.