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

Function FromStringWithDefault

util/string/cast.h:329–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

327
328template <class T, class TStringType>
329inline T FromStringWithDefault(const TStringType& s, const T& def) {
330 return FromString<T>(s.data(), s.size(), def);
331}
332
333template <class T>
334inline T FromStringWithDefault(const char* s, const T& def) {

Callers 1

Y_UNIT_TESTFunction · 0.85

Calls 3

TClass · 0.70
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected