MCPcopy Create free account
hub / github.com/boostorg/asio / deferred_conditional

Function deferred_conditional

include/boost/asio/deferred.hpp:492–497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

490 // Helper constructor.
491 template <typename T, typename F>
492 explicit deferred_conditional(bool b, T&& on_true, F&& on_false)
493 : on_true_(static_cast<T&&>(on_true)),
494 on_false_(static_cast<F&&>(on_false)),
495 bool_(b)
496 {
497 }
498
499 OnTrue on_true_;
500 OnFalse on_false_;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected