14 template <
typename Fn>
16 static_assert(std::is_invocable_v<Fn()>,
"Fn must be invocable");
21 template <
typename... Ts>
22 [[nodiscard]] constexpr
auto operator()(Ts&&... args)
const
23 noexcept(noexcept(fn_(std::forward<Ts>(args)...))) {
24 return fn_(std::forward<Ts>(args)...);
Template for creating lambdas with the nodiscard attribute.
Definition: no_discard.hpp:15