LLVM 17.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 294 of file STLExtras.h.
|
default |
|
inline |
Definition at line 306 of file STLExtras.h.
|
inline |
Definition at line 341 of file STLExtras.h.
|
inline |
Definition at line 340 of file STLExtras.h.
|
inline |
Definition at line 327 of file STLExtras.h.
|
inline |
Definition at line 333 of file STLExtras.h.
|
inline |
Definition at line 318 of file STLExtras.h.
References llvm::Other.
|
inline |
Definition at line 311 of file STLExtras.h.
References llvm::Other.
|
inline |
Definition at line 338 of file STLExtras.h.
|
inline |
Definition at line 337 of file STLExtras.h.