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

Function CreateOrNullptr

library/cpp/json/writer/json_value.cpp:808–810  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

806 namespace {
807 template <class TPtr, class T>
808 TPtr* CreateOrNullptr(TPtr* p, T key, std::true_type /*create*/) {
809 return &(*p)[key];
810 }
811
812 template <class TPtr, class T>
813 TPtr* CreateOrNullptr(const TPtr* p, T key, std::false_type /*create*/) noexcept {

Callers 1

GetValuePtrByPathFunction · 0.70

Calls 1

GetTypeMethod · 0.45

Tested by

no test coverage detected