pica/stream/ostream.h

28 lines
443 B
C
Raw Permalink Normal View History

2023-12-30 22:42:11 +00:00
//SPDX-FileCopyrightText: 2023 Yury Gubich <blue@macaw.me>
//SPDX-License-Identifier: GPL-3.0-or-later
2023-11-21 22:19:08 +00:00
#pragma once
#include <ios>
#include "stream.h"
class Request;
class OStream : Stream {
friend class Request;
private:
OStream(FCGX_Stream* raw);
public:
~OStream();
template <typename T>
OStream& operator << (const T& value) {
std << value;
return *this;
};
private:
std::ostream std;
};