MCPcopy Create free account
hub / github.com/cirquit/trdrop / StreamRedirect

Method StreamRedirect

ext/catch.hpp:6445–6451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6443
6444 public:
6445 StreamRedirect( std::ostream& stream, std::string& targetString )
6446 : m_stream( stream ),
6447 m_prevBuf( stream.rdbuf() ),
6448 m_targetString( targetString )
6449 {
6450 stream.rdbuf( m_oss.rdbuf() );
6451 }
6452
6453 ~StreamRedirect() {
6454 m_targetString += m_oss.str();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected