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.
string_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/string_traits.hpp @ 3408

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

importing initial XIOS vendor drop

  • Property svn:keywords set to Id
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.