[#C09F005DE770948FAB82A2FA8F293C22C43C9733]

Function to_upper

Return c converted to uppercase

Synopsis

            constexpr
char
to_upper(char c) noexcept;
        

Description

This function returns the character, converting it to uppercase if it is lowercase. The function is defined only for low-ASCII characters.

Example

assert( to_upper( 'a' ) == 'A' );

Exception Safety

Throws nothing.