Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:38:49

0001 // (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com)
0002 // (C) Copyright 2003-2007 Jonathan Turkanis
0003 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0004 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
0005 
0006 // See http://www.boost.org/libs/iostreams for documentation.
0007 
0008 #ifndef BOOST_IOSTREAMS_DETAIL_VALUE_TYPE_HPP_INCLUDED
0009 #define BOOST_IOSTREAMS_DETAIL_VALUE_TYPE_HPP_INCLUDED
0010 
0011 #if defined(_MSC_VER)
0012 # pragma once
0013 #endif              
0014 
0015 #include <boost/iostreams/traits.hpp>
0016 #include <boost/mpl/if.hpp>
0017 
0018 namespace boost { namespace iostreams { namespace detail {
0019 
0020 template<typename T>
0021 struct param_type {
0022     typedef typename mpl::if_<is_std_io<T>, T&, const T&>::type type;
0023 };
0024 
0025 template<typename T>
0026 struct value_type {
0027     typedef typename mpl::if_<is_std_io<T>, T&, T>::type type;
0028 };
0029 
0030 } } } // End namespaces detail, iostreams, boost.
0031 
0032 #endif // #ifndef BOOST_IOSTREAMS_DETAIL_VALUE_TYPE_HPP_INCLUDED //-----------//