LLVM 20.0.0git
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
llvm::support::detail::has_FormatProvider< T > Class Template Reference

#include "llvm/Support/FormatVariadicDetails.h"

Public Types

using Decayed = std::decay_t< T >
 
typedef void(* Signature_format) (const Decayed &, llvm::raw_ostream &, StringRef)
 

Static Public Member Functions

template<typename U >
static char test (SameType< Signature_format, &U::format > *)
 
template<typename U >
static double test (...)
 

Static Public Attributes

static bool const value
 

Detailed Description

template<class T>
class llvm::support::detail::has_FormatProvider< T >

Definition at line 62 of file FormatVariadicDetails.h.

Member Typedef Documentation

◆ Decayed

template<class T >
using llvm::support::detail::has_FormatProvider< T >::Decayed = std::decay_t<T>

Definition at line 64 of file FormatVariadicDetails.h.

◆ Signature_format

template<class T >
typedef void(* llvm::support::detail::has_FormatProvider< T >::Signature_format) (const Decayed &, llvm::raw_ostream &, StringRef)

Definition at line 65 of file FormatVariadicDetails.h.

Member Function Documentation

◆ test() [1/2]

template<class T >
template<typename U >
static double llvm::support::detail::has_FormatProvider< T >::test (   ...)
static

◆ test() [2/2]

template<class T >
template<typename U >
static char llvm::support::detail::has_FormatProvider< T >::test ( SameType< Signature_format, &U::format > *  )
static

Member Data Documentation

◆ value

template<class T >
bool const llvm::support::detail::has_FormatProvider< T >::value
static
Initial value:
=
(sizeof(test<llvm::format_provider<Decayed>>(nullptr)) == 1)

Definition at line 73 of file FormatVariadicDetails.h.


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