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

Function CreateOrNullptr

library/cpp/json/ordered_maps/json_value_ordered.cpp:883–885  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

881 namespace {
882 template <class TPtr, class T>
883 TPtr* CreateOrNullptr(TPtr* p, T key, std::true_type /*create*/) {
884 return &(*p)[key];
885 }
886
887 template <class TPtr, class T>
888 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