MCPcopy Create free account
hub / github.com/davisking/dlib / operator()

Method operator()

dlib/test/optional.cpp:303–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301 struct callback
302 {
303 constexpr auto operator()(int i) {return dlib::optional<long>{i}; };
304 };
305
306 constexpr auto res = o1.and_then(callback{});

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected