WPILibC++ 2023.4.3-108-ge5452e3
has_format_as< T > Struct Template Reference

#include </home/runner/work/allwpilib/allwpilib/wpiutil/src/main/native/thirdparty/fmtlib/include/fmt/core.h>

Public Types

enum  { value = decltype(check(static_cast<T*>(nullptr)))::value }
 

Static Public Member Functions

template<typename U , typename V = decltype(format_as(U())), FMT_ENABLE_IF(std::is_enum< U >::value &&std::is_integral< V >::value) >
static auto check (U *) -> std::true_type
 
static auto check (...) -> std::false_type
 

Member Enumeration Documentation

◆ anonymous enum

template<typename T >
anonymous enum
Enumerator
value 

Member Function Documentation

◆ check() [1/2]

template<typename T >
static auto has_format_as< T >::check (   ...) -> std::false_type
static

◆ check() [2/2]

template<typename T >
template<typename U , typename V = decltype(format_as(U())), FMT_ENABLE_IF(std::is_enum< U >::value &&std::is_integral< V >::value) >
static auto has_format_as< T >::check ( U *  ) -> std::true_type
static

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