source: vendor/nemo/current/NEMOGCM/EXTERNAL/XIOS/extern/boost/include/boost/algorithm/string/std/string_traits.hpp @ 44

Last change on this file since 44 was 44, checked in by cholod, 12 years ago

Load NEMO_TMP into vendor/nemo/current.

File size: 1.6 KB
Line 
1//  Boost string_algo library string_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_STRING_TRAITS_HPP
12#define BOOST_STRING_STD_STRING_TRAITS_HPP
13
14#include <boost/algorithm/string/yes_no_type.hpp>
15#include <string>
16#include <boost/algorithm/string/sequence_traits.hpp>
17
18namespace boost {
19    namespace algorithm {
20
21//  std::basic_string<> traits  -----------------------------------------------//
22
23#ifdef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
24
25        // native replace tester
26        template<typename T, typename TraitsT, typename AllocT>
27        yes_type has_native_replace_tester( const std::basic_string<T, TraitsT, AllocT>* );
28
29#else // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
30
31    // native replace trait
32        template<typename T, typename TraitsT, typename AllocT>
33        class has_native_replace< std::basic_string<T, TraitsT, AllocT> >
34        {
35        public:
36#if BOOST_WORKAROUND( __IBMCPP__, <= 600 )
37            enum { value = true } ;
38#else
39            BOOST_STATIC_CONSTANT(bool, value=true);
40#endif // BOOST_WORKAROUND( __IBMCPP__, <= 600 )
41
42        typedef mpl::bool_<has_native_replace<T>::value> type;
43        };
44
45
46#endif // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
47
48    } // namespace algorithm
49} // namespace boost
50
51
52#endif  // BOOST_STRING_LIST_TRAITS_HPP
Note: See TracBrowser for help on using the repository browser.