LLVM 20.0.0git
|
Templated storage wrapper for a callable. More...
#include "llvm/ADT/STLExtras.h"
Public Member Functions | |
Callable ()=default | |
Callable (T const &O) | |
Callable (Callable const &Other)=default | |
Callable (Callable &&Other)=default | |
Callable & | operator= (Callable const &Other) |
Callable & | operator= (Callable &&Other) |
template<typename... Pn, std::enable_if_t< std::is_invocable_v< T, Pn... >, int > = 0> | |
decltype(auto) | operator() (Pn &&...Params) |
template<typename... Pn, std::enable_if_t< std::is_invocable_v< T const, Pn... >, int > = 0> | |
decltype(auto) | operator() (Pn &&...Params) const |
bool | valid () const |
bool | reset () |
operator reference () | |
operator const_reference () const | |
Templated storage wrapper for a callable.
This class is consistently default constructible, copy / move constructible / assignable.
Supported callable types:
Definition at line 210 of file STLExtras.h.
|
default |
|
inline |
Definition at line 222 of file STLExtras.h.
|
inline |
Definition at line 257 of file STLExtras.h.
|
inline |
Definition at line 256 of file STLExtras.h.
|
inline |
Definition at line 243 of file STLExtras.h.
|
inline |
Definition at line 249 of file STLExtras.h.
|
inline |
Definition at line 234 of file STLExtras.h.
References llvm::Other.
|
inline |
Definition at line 227 of file STLExtras.h.
References llvm::Other.
|
inline |
Definition at line 254 of file STLExtras.h.
|
inline |
Definition at line 253 of file STLExtras.h.