annotate DEPENDENCIES/generic/include/boost/algorithm/string/std/string_traits.hpp @ 133:4acb5d8d80b6
tip
Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author |
Chris Cannam |
date |
Tue, 30 Jul 2019 12:25:44 +0100 |
parents |
c530137014c0 |
children |
|
rev |
line source |
Chris@16
|
1 // Boost string_algo library string_traits.hpp header file ---------------------------//
|
Chris@16
|
2
|
Chris@16
|
3 // Copyright Pavol Droba 2002-2003.
|
Chris@16
|
4 //
|
Chris@16
|
5 // Distributed under the Boost Software License, Version 1.0.
|
Chris@16
|
6 // (See accompanying file LICENSE_1_0.txt or copy at
|
Chris@16
|
7 // http://www.boost.org/LICENSE_1_0.txt)
|
Chris@16
|
8
|
Chris@16
|
9 // See http://www.boost.org/ for updates, documentation, and revision history.
|
Chris@16
|
10
|
Chris@16
|
11 #ifndef BOOST_STRING_STD_STRING_TRAITS_HPP
|
Chris@16
|
12 #define BOOST_STRING_STD_STRING_TRAITS_HPP
|
Chris@16
|
13
|
Chris@16
|
14 #include <boost/algorithm/string/yes_no_type.hpp>
|
Chris@16
|
15 #include <string>
|
Chris@16
|
16 #include <boost/algorithm/string/sequence_traits.hpp>
|
Chris@16
|
17
|
Chris@16
|
18 namespace boost {
|
Chris@16
|
19 namespace algorithm {
|
Chris@16
|
20
|
Chris@16
|
21 // std::basic_string<> traits -----------------------------------------------//
|
Chris@16
|
22
|
Chris@16
|
23
|
Chris@16
|
24 // native replace trait
|
Chris@16
|
25 template<typename T, typename TraitsT, typename AllocT>
|
Chris@16
|
26 class has_native_replace< std::basic_string<T, TraitsT, AllocT> >
|
Chris@16
|
27 {
|
Chris@16
|
28 public:
|
Chris@16
|
29 #if BOOST_WORKAROUND( __IBMCPP__, <= 600 )
|
Chris@16
|
30 enum { value = true } ;
|
Chris@16
|
31 #else
|
Chris@16
|
32 BOOST_STATIC_CONSTANT(bool, value=true);
|
Chris@16
|
33 #endif // BOOST_WORKAROUND( __IBMCPP__, <= 600 )
|
Chris@16
|
34
|
Chris@16
|
35 typedef mpl::bool_<has_native_replace<T>::value> type;
|
Chris@16
|
36 };
|
Chris@16
|
37
|
Chris@16
|
38
|
Chris@16
|
39
|
Chris@16
|
40 } // namespace algorithm
|
Chris@16
|
41 } // namespace boost
|
Chris@16
|
42
|
Chris@16
|
43
|
Chris@16
|
44 #endif // BOOST_STRING_LIST_TRAITS_HPP
|