MCPcopy Create free account
hub / github.com/bitfieldaudio/OTTO / instance

Method instance

external/include/catch.hpp:9375–9379  ·  view source on GitHub ↗

!TBD: put in TLS

Source from the content-addressed store, hash-verified

9373
9374 // !TBD: put in TLS
9375 static auto instance() -> StringStreams& {
9376 if( !s_instance )
9377 s_instance = new StringStreams();
9378 return *s_instance;
9379 }
9380 static void cleanup() {
9381 delete s_instance;
9382 s_instance = nullptr;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected