LLVM 23.0.0git
llvm::detail::FnHolder< FnT > Struct Template Reference

Stores a callable as a data member. More...

#include "llvm/ADT/STLForwardCompat.h"

Public Member Functions

template<typename FnArgT>
constexpr FnHolder (FnArgT &&F)
constexpr FnTget ()
constexpr const FnTget () const

Public Attributes

FnT Fn

Detailed Description

template<typename FnT>
struct llvm::detail::FnHolder< FnT >

Stores a callable as a data member.

Definition at line 201 of file STLForwardCompat.h.

Constructor & Destructor Documentation

◆ FnHolder()

template<typename FnT>
template<typename FnArgT>
llvm::detail::FnHolder< FnT >::FnHolder ( FnArgT && F)
inlineexplicitconstexpr

Definition at line 205 of file STLForwardCompat.h.

References F, and Fn.

Member Function Documentation

◆ get() [1/2]

template<typename FnT>
FnT & llvm::detail::FnHolder< FnT >::get ( )
inlineconstexpr

Definition at line 207 of file STLForwardCompat.h.

References Fn.

◆ get() [2/2]

template<typename FnT>
const FnT & llvm::detail::FnHolder< FnT >::get ( ) const
inlineconstexpr

Definition at line 208 of file STLForwardCompat.h.

References Fn.

Member Data Documentation

◆ Fn

template<typename FnT>
FnT llvm::detail::FnHolder< FnT >::Fn

Definition at line 202 of file STLForwardCompat.h.

Referenced by FnHolder(), get(), and get().


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