LLVM 22.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 190 of file STLExtras.h.
|
default |
Referenced by Callable(), Callable(), operator=(), and operator=().
|
inline |
Definition at line 202 of file STLExtras.h.
References T.
References Callable(), and llvm::Other.
References Callable(), and llvm::Other.
|
inline |
Definition at line 237 of file STLExtras.h.
|
inline |
Definition at line 236 of file STLExtras.h.
|
inline |
Definition at line 223 of file STLExtras.h.
|
inline |
Definition at line 229 of file STLExtras.h.
|
inline |
Definition at line 214 of file STLExtras.h.
References Callable(), and llvm::Other.
|
inline |
Definition at line 207 of file STLExtras.h.
References Callable(), and llvm::Other.
|
inline |
Definition at line 234 of file STLExtras.h.
|
inline |
Definition at line 233 of file STLExtras.h.