Searched defs:Ensure (Results 1 – 1 of 1) sorted by relevance
10 struct Ensure struct15 Ensure(U&& functor) : functor(std::forward<U>(functor)) in Ensure() argument18 Ensure(F functor) : functor(std::move(functor)) {} in Ensure() argument23 ~Ensure() in ~Ensure()29 Ensure& operator=(U&& other) in operator =()38 Ensure& operator=(std::nullptr_t) in operator =()47 explicit operator bool() const in operator bool()53 void call() in call()61 std::optional<F> functor;