rsl 1.1.0
ROS Support Library
Loading...
Searching...
No Matches
rsl::NoDiscard< Fn > Class Template Reference

Template for creating lambdas with the nodiscard attribute. More...

#include <no_discard.hpp>

Public Member Functions

 NoDiscard (Fn const &fn)
 
template<typename... Ts>
constexpr auto operator() (Ts &&... args) const noexcept(noexcept(fn_(std::forward< Ts >(args)...)))
 

Detailed Description

template<typename Fn>
class rsl::NoDiscard< Fn >

Template for creating lambdas with the nodiscard attribute.

Template Parameters
FnLambda

The documentation for this class was generated from the following file: