Simple-Utility v2.3.1
|
The core class, wrapping one functional object and enabling a variety of composing operators for it. More...
#include <BasicClosure.hpp>
Public Member Functions | |
template<class... Args> requires std::constructible_from<Fn, Args...> | |
constexpr | BasicClosure (Args &&... args) noexcept(std::is_nothrow_constructible_v< Fn, Args... >) |
Forwarding constructor, forwarding all of its arguments to its stored functional. | |
BasicClosure (const BasicClosure &)=default | |
Defaulted copy constructor. | |
BasicClosure & | operator= (const BasicClosure &)=default |
Defaulted copy assign operator. | |
BasicClosure (BasicClosure &&)=default | |
Defaulted move constructor. | |
BasicClosure & | operator= (BasicClosure &&)=default |
Defaulted move assign operator. | |
~BasicClosure ()=default | |
Defaulted destructor. | |
constexpr | operator const Fn & () const &noexcept |
Conversion operator, providing access to the stored functional as const lvalue-reference. | |
constexpr | operator Fn & () &noexcept |
Conversion operator, providing access to the stored functional as lvalue-reference. | |
constexpr | operator const Fn && () const &&noexcept |
Conversion operator, providing access to the stored functional as const rvalue-reference. | |
constexpr | operator Fn && () &&noexcept |
Conversion operator, providing access to the stored functional as rvalue-reference. | |
The core class, wrapping one functional object and enabling a variety of composing operators for it.
Fn | The wrapped functional type. |
InvokePolicy | CRTP type, providing different operator () implementations. |
OperatorPolicies | CRTP types, providing different composing operators. |
|
inlineexplicitconstexprnoexcept |
Forwarding constructor, forwarding all of its arguments to its stored functional.
Args | Constructor argument types. |
args | Constructor arguments. |
|
default |
Defaulted copy constructor.
|
default |
Defaulted move constructor.
|
default |
Defaulted destructor.
|
inlineexplicitconstexprnoexcept |
Conversion operator, providing access to the stored functional as const lvalue-reference.
|
inlineexplicitconstexprnoexcept |
Conversion operator, providing access to the stored functional as const rvalue-reference.
|
inlineexplicitconstexprnoexcept |
Conversion operator, providing access to the stored functional as lvalue-reference.
|
inlineexplicitconstexprnoexcept |
Conversion operator, providing access to the stored functional as rvalue-reference.
|
default |
Defaulted move assign operator.
|
default |
Defaulted copy assign operator.