WPILibC++ 2024.1.1-beta-4
wpi::function_ref< Ret(Params...)> Class Template Reference

#include </home/runner/work/allwpilib/allwpilib/wpiutil/src/main/native/thirdparty/llvm/include/wpi/function_ref.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
 

Constructor & Destructor Documentation

◆ function_ref() [1/3]

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

◆ function_ref() [2/3]

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

◆ function_ref() [3/3]

template<typename Ret , typename... Params>
template<typename Callable >
wpi::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

Member Function Documentation

◆ operator bool()

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

◆ operator()()

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

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