Talk:cpp/locale/numpunct/grouping
From cppreference.com
Hello,
About do_grouping(), the standard says the following:
Returns: A basic_string<char> vec used as a vector of integer values, in which each element vec[i] represents the number of digits in the group at position i, starting with position 0 as the rightmost group. If vec.size() <= i, the number is the same as group (i - 1); if (i < 0 || vec[i] <= 0 || vec[i] == CHAR_MAX), the size of the digit group is unlimited. The required specializations return the empty string, indicating no grouping.
Could we add information about negative/zero values and CHAR_MAX on this page?
Regards,
Daniel.