WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
wpi::util::details::can_invoke_to_string< T > Struct Template Reference

#include <wpi/util/argparse.hpp>

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>
auto wpi::util::details::can_invoke_to_string< T >::test ( ...) ->std::false_type
static

◆ test() [2/2]

template<typename T>
template<typename U>
auto wpi::util::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::util::details::can_invoke_to_string< T >::value = decltype(test<T>(0))::value
staticconstexpr

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