liuxiaolong
2021-07-20 58d904a328c0d849769b483e901a0be9426b8209
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
//-----------------------------------------------------------------------------
// boost detail/templated_streams.hpp header file
// See http://www.boost.org for updates, documentation, and revision history.
//-----------------------------------------------------------------------------
//
// Copyright (c) 2003
// Eric Friedman
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
 
#ifndef BOOST_DETAIL_TEMPLATED_STREAMS_HPP
#define BOOST_DETAIL_TEMPLATED_STREAMS_HPP
 
#include "boost/config.hpp"
 
///////////////////////////////////////////////////////////////////////////////
// (detail) BOOST_TEMPLATED_STREAM_* macros
//
// Provides workaround platforms without stream class templates.
//
 
#if !defined(BOOST_NO_STD_LOCALE)
 
#define BOOST_TEMPLATED_STREAM_TEMPLATE(E,T) \
    template < typename E , typename T >
 
#define BOOST_TEMPLATED_STREAM_TEMPLATE_ALLOC(E,T,A) \
    template < typename E , typename T , typename A >
 
#define BOOST_TEMPLATED_STREAM_ARGS(E,T) \
    typename E , typename T 
 
#define BOOST_TEMPLATED_STREAM_ARGS_ALLOC(E,T,A) \
    typename E , typename T , typename A 
 
#define BOOST_TEMPLATED_STREAM_COMMA        ,
 
#define BOOST_TEMPLATED_STREAM_ELEM(E)      E
#define BOOST_TEMPLATED_STREAM_TRAITS(T)    T
#define BOOST_TEMPLATED_STREAM_ALLOC(A)     A
 
#define BOOST_TEMPLATED_STREAM(X,E,T) \
    BOOST_JOIN(std::basic_,X)< E , T >
 
#define BOOST_TEMPLATED_STREAM_WITH_ALLOC(X,E,T,A) \
    BOOST_JOIN(std::basic_,X)< E , T , A >
 
#else // defined(BOOST_NO_STD_LOCALE)
 
#define BOOST_TEMPLATED_STREAM_TEMPLATE(E,T) /**/
 
#define BOOST_TEMPLATED_STREAM_TEMPLATE_ALLOC(E,T,A) /**/
 
#define BOOST_TEMPLATED_STREAM_ARGS(E,T) /**/
 
#define BOOST_TEMPLATED_STREAM_ARGS_ALLOC(E,T,A) /**/
 
#define BOOST_TEMPLATED_STREAM_COMMA        /**/
 
#define BOOST_TEMPLATED_STREAM_ELEM(E)      char
#define BOOST_TEMPLATED_STREAM_TRAITS(T)    std::char_traits<char>
#define BOOST_TEMPLATED_STREAM_ALLOC(A)     std::allocator<char>
 
#define BOOST_TEMPLATED_STREAM(X,E,T) \
    std::X
 
#define BOOST_TEMPLATED_STREAM_WITH_ALLOC(X,E,T,A) \
    std::X
 
#endif // BOOST_NO_STD_LOCALE
 
#endif // BOOST_DETAIL_TEMPLATED_STREAMS_HPP