string: add to_upper overload for char arrays

This commit is contained in:
Danny Robson 2020-12-01 13:32:55 +10:00
parent 2778c073a7
commit d5ba7e016f

View File

@ -63,6 +63,14 @@ namespace cruft {
}
template <std::size_t N>
inline std::string
to_upper (char const (&val)[N])
{
return to_upper (std::string_view (val));
}
/// Convert the provided string to all upper case
inline std::string
to_upper (std::string &&val)