MCPcopy Create free account
hub / github.com/RenderKit/oidn / RedirectedStream

Method RedirectedStream

external/catch.hpp:12059–12065  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12057namespace Catch {
12058
12059 RedirectedStream::RedirectedStream( std::ostream& originalStream, std::ostream& redirectionStream )
12060 : m_originalStream( originalStream ),
12061 m_redirectionStream( redirectionStream ),
12062 m_prevBuf( m_originalStream.rdbuf() )
12063 {
12064 m_originalStream.rdbuf( m_redirectionStream.rdbuf() );
12065 }
12066
12067 RedirectedStream::~RedirectedStream() {
12068 m_originalStream.rdbuf( m_prevBuf );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected