MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / ~ReusableStringStream

Method ~ReusableStringStream

unittests/catch.hpp:9541–9545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9539 {}
9540
9541 ReusableStringStream::~ReusableStringStream() {
9542 static_cast<std::ostringstream*>( m_oss )->str("");
9543 m_oss->clear();
9544 StringStreams::instance().release( m_index );
9545 }
9546
9547 auto ReusableStringStream::str() const -> std::string {
9548 return static_cast<std::ostringstream*>( m_oss )->str();

Callers

nothing calls this directly

Calls 2

releaseMethod · 0.80
strMethod · 0.45

Tested by

no test coverage detected