Arene Base
Fundamental Utilities For Safety Critical C++
Loading...
Searching...
No Matches
arene::base::function_ref< Signature, IsNoexcept > Class Template Reference

An implementation of the proposed std::function_ref from P0792. Provides a type-erased callable like std::function, but just stores a reference to the wrapped callable rather than a copy of it. More...

Detailed Description

template<typename Signature, bool IsNoexcept = false>
class arene::base::function_ref< Signature, IsNoexcept >

An implementation of the proposed std::function_ref from P0792. Provides a type-erased callable like std::function, but just stores a reference to the wrapped callable rather than a copy of it.

Template Parameters
SignatureThe function signature being wrapped of the form Return-type (Args...) optional-const
IsNoexceptIf the generated call operator should be noexcept

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