source: NonGTP/Boost/boost/iostreams/operations_fwd.hpp @ 857

Revision 857, 1.0 KB 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_OPERATIONS_FWD_HPP_INCLUDED
8#define BOOST_IOSTREAMS_OPERATIONS_FWD_HPP_INCLUDED
9
10#if defined(_MSC_VER) && (_MSC_VER >= 1020)
11# pragma once
12#endif
13
14#include <boost/mpl/not.hpp>
15#include <boost/type_traits/is_base_and_derived.hpp>
16
17namespace boost { namespace iostreams {
18
19template<typename T>
20struct operations;
21
22namespace detail {
23
24struct custom_tag { };
25
26template<typename T>
27struct is_custom
28    : mpl::not_<
29          is_base_and_derived< custom_tag, operations<T> >
30      >
31    { };
32
33} // End namespace detail.
34
35template<typename T>
36struct operations : detail::custom_tag { };
37
38} } // End namespaces iostreams, boost.
39
40#endif // #ifndef BOOST_IOSTREAMS_OPERATIONS_FWD_HPP_INCLUDED //--------------//
Note: See TracBrowser for help on using the repository browser.