1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/stdapis/boost/detail/templated_streams.hpp Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -0,0 +1,74 @@
1.4 +//-----------------------------------------------------------------------------
1.5 +// boost detail/templated_streams.hpp header file
1.6 +// See http://www.boost.org for updates, documentation, and revision history.
1.7 +//-----------------------------------------------------------------------------
1.8 +//
1.9 +// Copyright (c) 2003
1.10 +// Eric Friedman
1.11 +//
1.12 +// Distributed under the Boost Software License, Version 1.0. (See
1.13 +// accompanying file LICENSE_1_0.txt or copy at
1.14 +// http://www.boost.org/LICENSE_1_0.txt)
1.15 +
1.16 +#ifndef BOOST_DETAIL_TEMPLATED_STREAMS_HPP
1.17 +#define BOOST_DETAIL_TEMPLATED_STREAMS_HPP
1.18 +
1.19 +#include "boost/config.hpp"
1.20 +
1.21 +///////////////////////////////////////////////////////////////////////////////
1.22 +// (detail) BOOST_TEMPLATED_STREAM_* macros
1.23 +//
1.24 +// Provides workaround platforms without stream class templates.
1.25 +//
1.26 +
1.27 +#if !defined(BOOST_NO_STD_LOCALE)
1.28 +
1.29 +#define BOOST_TEMPLATED_STREAM_TEMPLATE(E,T) \
1.30 + template < typename E , typename T >
1.31 +
1.32 +#define BOOST_TEMPLATED_STREAM_TEMPLATE_ALLOC(E,T,A) \
1.33 + template < typename E , typename T , typename A >
1.34 +
1.35 +#define BOOST_TEMPLATED_STREAM_ARGS(E,T) \
1.36 + typename E , typename T
1.37 +
1.38 +#define BOOST_TEMPLATED_STREAM_ARGS_ALLOC(E,T,A) \
1.39 + typename E , typename T , typename A
1.40 +
1.41 +#define BOOST_TEMPLATED_STREAM_COMMA ,
1.42 +
1.43 +#define BOOST_TEMPLATED_STREAM_ELEM(E) E
1.44 +#define BOOST_TEMPLATED_STREAM_TRAITS(T) T
1.45 +#define BOOST_TEMPLATED_STREAM_ALLOC(A) A
1.46 +
1.47 +#define BOOST_TEMPLATED_STREAM(X,E,T) \
1.48 + BOOST_JOIN(std::basic_,X)< E , T >
1.49 +
1.50 +#define BOOST_TEMPLATED_STREAM_WITH_ALLOC(X,E,T,A) \
1.51 + BOOST_JOIN(std::basic_,X)< E , T , A >
1.52 +
1.53 +#else // defined(BOOST_NO_STD_LOCALE)
1.54 +
1.55 +#define BOOST_TEMPLATED_STREAM_TEMPLATE(E,T) /**/
1.56 +
1.57 +#define BOOST_TEMPLATED_STREAM_TEMPLATE_ALLOC(E,T,A) /**/
1.58 +
1.59 +#define BOOST_TEMPLATED_STREAM_ARGS(E,T) /**/
1.60 +
1.61 +#define BOOST_TEMPLATED_STREAM_ARGS_ALLOC(E,T,A) /**/
1.62 +
1.63 +#define BOOST_TEMPLATED_STREAM_COMMA /**/
1.64 +
1.65 +#define BOOST_TEMPLATED_STREAM_ELEM(E) char
1.66 +#define BOOST_TEMPLATED_STREAM_TRAITS(T) std::char_traits<char>
1.67 +#define BOOST_TEMPLATED_STREAM_ALLOC(A) std::allocator<char>
1.68 +
1.69 +#define BOOST_TEMPLATED_STREAM(X,E,T) \
1.70 + std::X
1.71 +
1.72 +#define BOOST_TEMPLATED_STREAM_WITH_ALLOC(X,E,T,A) \
1.73 + std::X
1.74 +
1.75 +#endif // BOOST_NO_STD_LOCALE
1.76 +
1.77 +#endif // BOOST_DETAIL_TEMPLATED_STREAMS_HPP