Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
internal::printf_precision_handler Class Reference

Public Member Functions

template<typename T, FMT_ENABLE_IF(is_integral< T >::value)>
int operator() (T value)
template<typename T, FMT_ENABLE_IF(!is_integral< T >::value)>
int operator() (T)

Member Function Documentation

◆ operator()() [1/2]

template<typename T, FMT_ENABLE_IF(is_integral< T >::value)>
int internal::printf_precision_handler::operator() ( T value)
inline
71173 {
71174 if (!int_checker<std::numeric_limits<T>::is_signed || std::is_same<T, int128_t>::value>::fits_in_int(value))
71175 FMT_THROW(duckdb::InvalidInputException("number is too big"));
71176 return (std::max)(static_cast<int>(value), 0);
71177 }

◆ operator()() [2/2]

template<typename T, FMT_ENABLE_IF(!is_integral< T >::value)>
int internal::printf_precision_handler::operator() ( T )
inline
71180 {
71181 FMT_THROW(duckdb::InvalidInputException("precision is not integer"));
71182 return 0;
71183 }

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