MCPcopy Create free account
hub / github.com/Predelnik/DSpellCheck / ~ReusableStringStream

Method ~ReusableStringStream

deps/Catch/catch.hpp:13683–13687  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13681 {}
13682
13683 ReusableStringStream::~ReusableStringStream() {
13684 static_cast<std::ostringstream*>( m_oss )->str("");
13685 m_oss->clear();
13686 Singleton<StringStreams>::getMutable().release( m_index );
13687 }
13688
13689 auto ReusableStringStream::str() const -> std::string {
13690 return static_cast<std::ostringstream*>( m_oss )->str();

Callers

nothing calls this directly

Calls 3

strMethod · 0.80
clearMethod · 0.80
releaseMethod · 0.45

Tested by

no test coverage detected