Template Function librapid::detail::countWidth#
Defined in File arrayViewString.hpp
Function Documentation#
-
template<typename T, typename std::enable_if_t<std::is_fundamental_v<T>, int> = 0>
std::pair<int64_t, int64_t> librapid::detail::countWidth(const T &val, const std::string &format)# Count the width of a value for use in a String representation of an Array. The returned tuple contains the length of the value before and after the central point. For floating point values, the central point is the decimal point. For integer values, the central point is the end of the value
- Template Parameters
T – The type of the value to count the width of
- Parameters
val – The value to count the width of
format – The format string to use when converting the value to a String
- Returns
The relevant widths of the value