mini-llvm 0.1.0
Loading...
Searching...
No Matches
mini_llvm::FunctionRef< R(Args...)> Class Template Reference

#include <FunctionRef.h>

Public Member Functions

template<typename F>
requires std::is_function_v<F> && std::is_invocable_r_v<R, F &, Args...>
 FunctionRef (F *f) noexcept
template<typename F>
requires (!std::is_same_v<std::remove_cv_t<std::remove_reference_t<F>>, FunctionRef> && std::is_invocable_r_v<R,
std::remove_reference_t<F> &, Args...>)
 FunctionRef (F &&f) noexcept
 FunctionRef (const FunctionRef &)=default
constexpr FunctionRefoperator= (const FunctionRef &) noexcept=default
operator() (Args... args) const

Constructor & Destructor Documentation

◆ FunctionRef() [1/3]

template<typename R, typename... Args>
template<typename F>
requires std::is_function_v<F> && std::is_invocable_r_v<R, F &, Args...>
mini_llvm::FunctionRef< R(Args...)>::FunctionRef ( F * f)
inlinenoexcept

◆ FunctionRef() [2/3]

template<typename R, typename... Args>
template<typename F>
requires (!std::is_same_v<std::remove_cv_t<std::remove_reference_t<F>>, FunctionRef> && std::is_invocable_r_v<R,
std::remove_reference_t<F> &, Args...>)
mini_llvm::FunctionRef< R(Args...)>::FunctionRef ( F && f)
inlinenoexcept

◆ FunctionRef() [3/3]

template<typename R, typename... Args>
mini_llvm::FunctionRef< R(Args...)>::FunctionRef ( const FunctionRef< R(Args...)> & )
default

Member Function Documentation

◆ operator()()

template<typename R, typename... Args>
R mini_llvm::FunctionRef< R(Args...)>::operator() ( Args... args) const
inline

◆ operator=()

template<typename R, typename... Args>
FunctionRef & mini_llvm::FunctionRef< R(Args...)>::operator= ( const FunctionRef< R(Args...)> & )
constexprdefaultnoexcept

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