MCPcopy Create free account
hub / github.com/catboost/catboost / ~TJsonWriter

Method ~TJsonWriter

library/cpp/json/json_writer.cpp:38–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 }
37
38 TJsonWriter::~TJsonWriter() {
39 // if we write to socket it's possible to get exception here
40 // don't use exceptions in destructors
41 if (!DontFlushInDestructor) {
42 try {
43 Flush();
44 } catch (...) {
45 }
46 }
47 }
48
49 void TJsonWriter::Flush() {
50 if (Out) {

Callers

nothing calls this directly

Calls 1

FlushFunction · 0.50

Tested by

no test coverage detected