MCPcopy Create free account
hub / github.com/catboost/catboost / WriteOptional

Method WriteOptional

library/cpp/json/json_writer.h:149–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147
148 template <typename T>
149 void WriteOptional(const TStringBuf& key, const TMaybe<T>& value) {
150 if (value) {
151 Write(key, *value);
152 }
153 }
154
155 void WriteOptional(const TStringBuf&, const TNothing&) {
156 // nothing to do

Callers

nothing calls this directly

Calls 1

WriteFunction · 0.50

Tested by

no test coverage detected