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

Method Transform

util/generic/maybe.h:481–489  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

479
480 template <typename F>
481 constexpr auto Transform(F&& func) & {
482 using ReturnType = TMaybe<TCallResult<F, T&>>;
483
484 if (Defined()) {
485 return ReturnType(std::forward<F>(func)(*Data()));
486 }
487
488 return ReturnType{};
489 }
490
491 template <typename F>
492 constexpr auto Transform(F&& func) const& {

Callers 4

ToLowerFunction · 0.45
ToUpperFunction · 0.45
ToTitleFunction · 0.45
Y_UNIT_TESTFunction · 0.45

Calls 3

ReturnTypeClass · 0.85
DataClass · 0.70
moveFunction · 0.50

Tested by

no test coverage detected