WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
wpi::details::can_invoke_to_string< T > Struct Template Reference

#include <wpi/argparse.h>

Static Public Member Functions

template<typename U >
static auto test (int) -> decltype(std::to_string(std::declval< U >()), std::true_type{})
 
template<typename U >
static auto test (...) -> std::false_type
 

Static Public Attributes

static constexpr bool value = decltype(test<T>(0))::value
 

Member Function Documentation

◆ test() [1/2]

template<typename T >
template<typename U >
static auto wpi::details::can_invoke_to_string< T >::test ( ...) -> std::false_type
static

◆ test() [2/2]

template<typename T >
template<typename U >
static auto wpi::details::can_invoke_to_string< T >::test ( int ) -> decltype(std::to_string(std::declval< U >()), std::true_type{})
static

Member Data Documentation

◆ value

template<typename T >
bool wpi::details::can_invoke_to_string< T >::value = decltype(test<T>(0))::value
staticconstexpr

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