1 //-----------------------------------------------------------------------------
\r
2 // boost detail/templated_streams.hpp header file
\r
3 // See http://www.boost.org for updates, documentation, and revision history.
\r
4 //-----------------------------------------------------------------------------
\r
6 // Copyright (c) 2003
\r
9 // Distributed under the Boost Software License, Version 1.0. (See
\r
10 // accompanying file LICENSE_1_0.txt or copy at
\r
11 // http://www.boost.org/LICENSE_1_0.txt)
\r
13 #ifndef BOOST_DETAIL_TEMPLATED_STREAMS_HPP
\r
14 #define BOOST_DETAIL_TEMPLATED_STREAMS_HPP
\r
16 #include "boost/config.hpp"
\r
18 ///////////////////////////////////////////////////////////////////////////////
\r
19 // (detail) BOOST_TEMPLATED_STREAM_* macros
\r
21 // Provides workaround platforms without stream class templates.
\r
24 #if !defined(BOOST_NO_STD_LOCALE)
\r
26 #define BOOST_TEMPLATED_STREAM_TEMPLATE(E,T) \
\r
27 template < typename E , typename T >
\r
29 #define BOOST_TEMPLATED_STREAM_TEMPLATE_ALLOC(E,T,A) \
\r
30 template < typename E , typename T , typename A >
\r
32 #define BOOST_TEMPLATED_STREAM_ARGS(E,T) \
\r
33 typename E , typename T
\r
35 #define BOOST_TEMPLATED_STREAM_ARGS_ALLOC(E,T,A) \
\r
36 typename E , typename T , typename A
\r
38 #define BOOST_TEMPLATED_STREAM_COMMA ,
\r
40 #define BOOST_TEMPLATED_STREAM_ELEM(E) E
\r
41 #define BOOST_TEMPLATED_STREAM_TRAITS(T) T
\r
42 #define BOOST_TEMPLATED_STREAM_ALLOC(A) A
\r
44 #define BOOST_TEMPLATED_STREAM(X,E,T) \
\r
45 BOOST_JOIN(std::basic_,X)< E , T >
\r
47 #define BOOST_TEMPLATED_STREAM_WITH_ALLOC(X,E,T,A) \
\r
48 BOOST_JOIN(std::basic_,X)< E , T , A >
\r
50 #else // defined(BOOST_NO_STD_LOCALE)
\r
52 #define BOOST_TEMPLATED_STREAM_TEMPLATE(E,T) /**/
\r
54 #define BOOST_TEMPLATED_STREAM_TEMPLATE_ALLOC(E,T,A) /**/
\r
56 #define BOOST_TEMPLATED_STREAM_ARGS(E,T) /**/
\r
58 #define BOOST_TEMPLATED_STREAM_ARGS_ALLOC(E,T,A) /**/
\r
60 #define BOOST_TEMPLATED_STREAM_COMMA /**/
\r
62 #define BOOST_TEMPLATED_STREAM_ELEM(E) char
\r
63 #define BOOST_TEMPLATED_STREAM_TRAITS(T) std::char_traits<char>
\r
64 #define BOOST_TEMPLATED_STREAM_ALLOC(A) std::allocator<char>
\r
66 #define BOOST_TEMPLATED_STREAM(X,E,T) \
\r
69 #define BOOST_TEMPLATED_STREAM_WITH_ALLOC(X,E,T,A) \
\r
72 #endif // BOOST_NO_STD_LOCALE
\r
74 #endif // BOOST_DETAIL_TEMPLATED_STREAMS_HPP
\r