MCPcopy Create free account
hub / github.com/catchorg/Catch2 / ~ReusableStringStream

Method ~ReusableStringStream

extras/catch_amalgamated.cpp:5831–5835  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5829 }
5830
5831 ReusableStringStream::~ReusableStringStream() {
5832 static_cast<std::ostringstream*>( m_oss )->str("");
5833 m_oss->clear();
5834 Singleton<StringStreams>::getMutable().release( m_index, m_oss );
5835 }
5836
5837 std::string ReusableStringStream::str() const {
5838 return static_cast<std::ostringstream*>( m_oss )->str();

Callers

nothing calls this directly

Calls 3

strMethod · 0.45
clearMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected