source: NonGTP/Boost/boost/iostreams/detail/call_traits.hpp @ 857

Revision 857, 963 bytes checked in by igarcia, 18 years ago (diff)
Line 
1// (C) Copyright Jonathan Turkanis 2003.
2// Distributed under the Boost Software License, Version 1.0. (See accompanying
3// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
4
5// See http://www.boost.org/libs/iostreams for documentation.
6
7#ifndef BOOST_IOSTREAMS_DETAIL_VALUE_TYPE_HPP_INCLUDED
8#define BOOST_IOSTREAMS_DETAIL_VALUE_TYPE_HPP_INCLUDED
9
10#if defined(_MSC_VER) && (_MSC_VER >= 1020)
11# pragma once
12#endif             
13
14#include <boost/iostreams/traits.hpp>
15#include <boost/mpl/if.hpp>
16
17namespace boost { namespace iostreams { namespace detail {
18
19template<typename T>
20struct param_type {
21    typedef typename mpl::if_<is_std_io<T>, T&, const T&>::type type;
22};
23
24template<typename T>
25struct value_type {
26    typedef typename mpl::if_<is_std_io<T>, T&, T>::type type;
27};
28
29} } } // End namespaces detail, iostreams, boost.
30
31#endif // #ifndef BOOST_IOSTREAMS_DETAIL_VALUE_TYPE_HPP_INCLUDED //-----------//
Note: See TracBrowser for help on using the repository browser.