templated_streams.hpp
Go to the documentation of this file.
00001 //-----------------------------------------------------------------------------
00002 // boost detail/templated_streams.hpp header file
00003 // See http://www.boost.org for updates, documentation, and revision history.
00004 //-----------------------------------------------------------------------------
00005 //
00006 // Copyright (c) 2003
00007 // Eric Friedman
00008 //
00009 // Distributed under the Boost Software License, Version 1.0. (See
00010 // accompanying file LICENSE_1_0.txt or copy at
00011 // http://www.boost.org/LICENSE_1_0.txt)
00012 
00013 #ifndef BOOST_DETAIL_TEMPLATED_STREAMS_HPP
00014 #define BOOST_DETAIL_TEMPLATED_STREAMS_HPP
00015 
00016 #include "boost/config.hpp"
00017 
00019 // (detail) BOOST_TEMPLATED_STREAM_* macros
00020 //
00021 // Provides workaround platforms without stream class templates.
00022 //
00023 
00024 #if !defined(BOOST_NO_STD_LOCALE)
00025 
00026 #define BOOST_TEMPLATED_STREAM_TEMPLATE(E,T) \
00027     template < typename E , typename T >
00028 
00029 #define BOOST_TEMPLATED_STREAM_TEMPLATE_ALLOC(E,T,A) \
00030     template < typename E , typename T , typename A >
00031 
00032 #define BOOST_TEMPLATED_STREAM_ARGS(E,T) \
00033     typename E , typename T 
00034 
00035 #define BOOST_TEMPLATED_STREAM_ARGS_ALLOC(E,T,A) \
00036     typename E , typename T , typename A 
00037 
00038 #define BOOST_TEMPLATED_STREAM_COMMA        ,
00039 
00040 #define BOOST_TEMPLATED_STREAM_ELEM(E)      E
00041 #define BOOST_TEMPLATED_STREAM_TRAITS(T)    T
00042 #define BOOST_TEMPLATED_STREAM_ALLOC(A)     A
00043 
00044 #define BOOST_TEMPLATED_STREAM(X,E,T) \
00045     BOOST_JOIN(std::basic_,X)< E , T >
00046 
00047 #define BOOST_TEMPLATED_STREAM_WITH_ALLOC(X,E,T,A) \
00048     BOOST_JOIN(std::basic_,X)< E , T , A >
00049 
00050 #else // defined(BOOST_NO_STD_LOCALE)
00051 
00052 #define BOOST_TEMPLATED_STREAM_TEMPLATE(E,T) 
00053 
00054 #define BOOST_TEMPLATED_STREAM_TEMPLATE_ALLOC(E,T,A) 
00055 
00056 #define BOOST_TEMPLATED_STREAM_ARGS(E,T) 
00057 
00058 #define BOOST_TEMPLATED_STREAM_ARGS_ALLOC(E,T,A) 
00059 
00060 #define BOOST_TEMPLATED_STREAM_COMMA        
00061 
00062 #define BOOST_TEMPLATED_STREAM_ELEM(E)      char
00063 #define BOOST_TEMPLATED_STREAM_TRAITS(T)    std::char_traits<char>
00064 #define BOOST_TEMPLATED_STREAM_ALLOC(A)     std::allocator<char>
00065 
00066 #define BOOST_TEMPLATED_STREAM(X,E,T) \
00067     std::X
00068 
00069 #define BOOST_TEMPLATED_STREAM_WITH_ALLOC(X,E,T,A) \
00070     std::X
00071 
00072 #endif // BOOST_NO_STD_LOCALE
00073 
00074 #endif // BOOST_DETAIL_TEMPLATED_STREAMS_HPP


appl
Author(s): petercai
autogenerated on Tue Jan 7 2014 11:02:29