The maximum number of code points needed for a given encoding object. This can be used to create a suitably-sized automatic storage duration buffer, e.g.

using code_point = ztd::text::code_point_t<ztd::text::utf8>;
constexpr std::size_t max_output_size = ztd::text::max_code_points_v<ztd::text::utf8>;

std::array<code_point, max_output_size> my_cxx_buffer;
code_point my_c_buffer[max_output_size];
template<typename _Type>
static constexpr ::std::size_t ztd::text::max_code_points_v = _Type::max_code_points

Gets the maximum number of code points that can be produced by an encoding during a decode operation, suitable for initializing a automatic storage duration (“stack-allocated”) buffer.