On 23-Dec-2023, at 20:59, Wim Leflere via Std-Proposals <std-proposals@lists.isocpp.org> wrote:
--Would there be interest in having more idiomatic versions of the character check functions (from cctype & cwctype)?
ExampleReplace"int std::islower(int ch)" and "int std::iswlower(std::wint_t ch)"With"bool std::is_lower(char ch)" and "bool std::is_lower(wchar_t ch)"
Using overloads allows use in a more generic way.The implementation could call the C function (in the correct way).
Wim
Std-Proposals mailing list
Std-Proposals@lists.isocpp.org
https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals