MCPcopy Create free account
hub / github.com/davisking/dlib / transform

Method transform

dlib/optional.h:729–735  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

727 std::enable_if_t<!std::is_same<U, dlib::nullopt_t>::value, bool> = true
728 >
729 constexpr dlib::optional<U> transform(F&& f) &
730 {
731 if (*this)
732 return dlib::invoke(std::forward<F>(f), **this);
733 else
734 return dlib::optional<U>{};
735 }
736
737 template <
738 class F,

Callers 3

prior_frobnorm_testMethod · 0.80
test_optional_int_monadsFunction · 0.80

Calls 2

invokeFunction · 0.85
moveFunction · 0.85

Tested by 3

prior_frobnorm_testMethod · 0.64
test_optional_int_monadsFunction · 0.64