USRP Hardware Driver and Device Manual Version: 4.10.0.0_release
UHD and USRP Manual
 
Loading...
Searching...
No Matches
uhd::cast::detail Namespace Reference

Template implementations for uhd::cast::to_str() for common types. More...

Typedefs

template<typename T >
using has_to_string_method = decltype(has_to_string_method_impl<T>(0))
 

Functions

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

Detailed Description

Template implementations for uhd::cast::to_str() for common types.

Typedef Documentation

◆ has_to_string_method

template<typename T >
using uhd::cast::detail::has_to_string_method = decltype(has_to_string_method_impl<T>(0))

Function Documentation

◆ has_to_string_method_impl() [1/2]

template<typename T >
auto uhd::cast::detail::has_to_string_method_impl ( ...) -> std::false_type

◆ has_to_string_method_impl() [2/2]

template<typename T >
auto uhd::cast::detail::has_to_string_method_impl ( int ) -> decltype(std::declval< T >().to_string(), std::true_type{})