LLVM 19.0.0git
Public Member Functions | List of all members
llvm::function_ref< Ret(Params...)> Class Template Reference

#include "llvm/ADT/STLFunctionalExtras.h"

Public Member Functions

 function_ref ()=default
 
 function_ref (std::nullptr_t)
 
template<typename Callable >
 function_ref (Callable &&callable, std::enable_if_t<!std::is_same< remove_cvref_t< Callable >, function_ref >::value > *=nullptr, std::enable_if_t< std::is_void< Ret >::value||std::is_convertible< decltype(std::declval< Callable >()(std::declval< Params >()...)), Ret >::value > *=nullptr)
 
Ret operator() (Params ...params) const
 
 operator bool () const
 

Detailed Description

template<typename Ret, typename ... Params>
class llvm::function_ref< Ret(Params...)>

Definition at line 39 of file STLFunctionalExtras.h.

Constructor & Destructor Documentation

◆ function_ref() [1/3]

template<typename Ret , typename ... Params>
llvm::function_ref< Ret(Params...)>::function_ref ( )
default

◆ function_ref() [2/3]

template<typename Ret , typename ... Params>
llvm::function_ref< Ret(Params...)>::function_ref ( std::nullptr_t  )
inline

Definition at line 51 of file STLFunctionalExtras.h.

◆ function_ref() [3/3]

template<typename Ret , typename ... Params>
template<typename Callable >
llvm::function_ref< Ret(Params...)>::function_ref ( Callable &&  callable,
std::enable_if_t<!std::is_same< remove_cvref_t< Callable >, function_ref< Ret(Params...)> >::value > *  = nullptr,
std::enable_if_t< std::is_void< Ret >::value||std::is_convertible< decltype(std::declval< Callable >()(std::declval< Params >()...)), Ret >::value  ,
= nullptr 
)
inline

Definition at line 54 of file STLFunctionalExtras.h.

Member Function Documentation

◆ operator bool()

template<typename Ret , typename ... Params>
llvm::function_ref< Ret(Params...)>::operator bool ( ) const
inlineexplicit

Definition at line 71 of file STLFunctionalExtras.h.

◆ operator()()

template<typename Ret , typename ... Params>
Ret llvm::function_ref< Ret(Params...)>::operator() ( Params ...  params) const
inline

Definition at line 67 of file STLFunctionalExtras.h.


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