/usr/include/boost/thread
Edit: /usr/include/boost/thread/ostream_buffer.hpp (925B)
// (C) Copyright 2013 Vicente J. Botet Escriba
// 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)
#ifndef BOOST_THREAD_OSTREAM_BUFFER_HPP
#define BOOST_THREAD_OSTREAM_BUFFER_HPP
#include
#include
#include
#include
namespace boost
{
template
class ostream_buffer
{
public:
typedef std::basic_ostringstream stream_type;
ostream_buffer(OStream& os) :
os_(os)
{
}
~ostream_buffer()
{
os_ << o_str_.str();
}
stream_type& stream()
{
return o_str_;
}
private:
OStream& os_;
stream_type o_str_;
};
}
#include
#endif // header