LLVM 20.0.0git
Public Member Functions | List of all members
llvm::callable_detail::Callable< T, true > Class Template Reference

#include "llvm/ADT/STLExtras.h"

Public Member Functions

 Callable ()=default
 
template<typename FnPtrOrRef , std::enable_if_t< !std::is_same_v< remove_cvref_t< FnPtrOrRef >, Callable >, int > = 0>
 Callable (FnPtrOrRef &&F)
 
template<typename... Pn, std::enable_if_t< std::is_invocable_v< T, Pn... >, int > = 0>
decltype(auto) operator() (Pn &&...Params) const
 
bool valid () const
 
void reset ()
 
 operator T const & () const
 

Detailed Description

template<typename T>
class llvm::callable_detail::Callable< T, true >

Definition at line 262 of file STLExtras.h.

Constructor & Destructor Documentation

◆ Callable() [1/2]

template<typename T >
llvm::callable_detail::Callable< T, true >::Callable ( )
default

◆ Callable() [2/2]

template<typename T >
template<typename FnPtrOrRef , std::enable_if_t< !std::is_same_v< remove_cvref_t< FnPtrOrRef >, Callable >, int > = 0>
llvm::callable_detail::Callable< T, true >::Callable ( FnPtrOrRef &&  F)
inline

Definition at line 295 of file STLExtras.h.

Member Function Documentation

◆ operator T const &()

template<typename T >
llvm::callable_detail::Callable< T, true >::operator T const & ( ) const
inline

Definition at line 306 of file STLExtras.h.

◆ operator()()

template<typename T >
template<typename... Pn, std::enable_if_t< std::is_invocable_v< T, Pn... >, int > = 0>
decltype(auto) llvm::callable_detail::Callable< T, true >::operator() ( Pn &&...  Params) const
inline

Definition at line 299 of file STLExtras.h.

◆ reset()

template<typename T >
void llvm::callable_detail::Callable< T, true >::reset ( )
inline

Definition at line 304 of file STLExtras.h.

◆ valid()

template<typename T >
bool llvm::callable_detail::Callable< T, true >::valid ( ) const
inline

Definition at line 303 of file STLExtras.h.


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