/usr/include/boost/iostreams
Edit: /usr/include/boost/iostreams/concepts.hpp (3957B)
// (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com)
// (C) Copyright 2003-2007 Jonathan Turkanis
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
// See http://www.boost.org/libs/iostreams for documentation.
#ifndef BOOST_IOSTREAMS_CONCEPTS_HPP_INCLUDED
#define BOOST_IOSTREAMS_CONCEPTS_HPP_INCLUDED
#if defined(_MSC_VER)
# pragma once
#endif
#include
// BOOST_MSVC
#include
#include
#include
#include // openmode.
#include
#include
#include
namespace boost { namespace iostreams {
//--------------Definitions of helper templates for device concepts-----------//
template
struct device {
typedef Ch char_type;
struct category
: Mode,
device_tag,
closable_tag,
localizable_tag
{ };
void close()
{
using namespace detail;
BOOST_STATIC_ASSERT((!is_convertible::value));
}
void close(BOOST_IOS::openmode)
{
using namespace detail;
BOOST_STATIC_ASSERT((is_convertible::value));
}
template
void imbue(const Locale&) { }
};
template
struct wdevice : device { };
typedef device source;
typedef wdevice wsource;
typedef device