MCPcopy Create free account
hub / github.com/dblalock/bolt / StreamRedirect

Method StreamRedirect

cpp/quantize/catch.hpp:4926–4932  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4924
4925 public:
4926 StreamRedirect( std::ostream& stream, std::string& targetString )
4927 : m_stream( stream ),
4928 m_prevBuf( stream.rdbuf() ),
4929 m_targetString( targetString )
4930 {
4931 stream.rdbuf( m_oss.rdbuf() );
4932 }
4933
4934 ~StreamRedirect() {
4935 m_targetString += m_oss.str();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected