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

#include "llvm/ADT/STLExtras.h"

Public Member Functions

 function_ref ()=default
 
 function_ref (std::nullptr_t)
 
template<typename Callable >
 function_ref (Callable &&callable, typename std::enable_if< !std::is_same< typename std::remove_reference< Callable >::type, function_ref >::value >::type *=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 110 of file STLExtras.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 122 of file STLExtras.h.

◆ function_ref() [3/3]

template<typename Ret , typename ... Params>
template<typename Callable >
llvm::function_ref< Ret(Params...)>::function_ref ( Callable &&  callable,
typename std::enable_if< !std::is_same< typename std::remove_reference< Callable >::type, function_ref< Ret(Params...)> >::value >::type = nullptr 
)
inline

Definition at line 125 of file STLExtras.h.

Member Function Documentation

◆ operator bool()

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

Definition at line 136 of file STLExtras.h.

◆ operator()()

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

Definition at line 132 of file STLExtras.h.


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