to_chars
In this part we learn about the to_char function and it's two types of declarations; the integral and floating point.
to_chars
is a set of overloaded functions for integral and floating point types.
Integral types declaration
Press + to interact
std::to_chars_result to_chars(char* first, char* last, TYPE value, int base = 10);
Where TYPE
expands to all available signed and unsigned integer types and char
.
Since base
might range from 2 to 36, the output digits that are greater than 9 are represented as lowercase letters: a...z
.