MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / RedirectedStream

Method RedirectedStream

Bcore/src/main/cpp/Dobby/tests/catch.hpp:8080–8083  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8078namespace Catch {
8079
8080RedirectedStream::RedirectedStream(std::ostream &originalStream, std::ostream &redirectionStream)
8081 : m_originalStream(originalStream), m_redirectionStream(redirectionStream), m_prevBuf(m_originalStream.rdbuf()) {
8082 m_originalStream.rdbuf(m_redirectionStream.rdbuf());
8083}
8084
8085RedirectedStream::~RedirectedStream() {
8086 m_originalStream.rdbuf(m_prevBuf);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected