Function operator""_u

Synopsis

#include <include/type_safe/types.hpp>

template <char... Digits>
constexpr unsigned_t operator""_u()

Description

\module types

Source

Lines 214-219 in include/type_safe/types.hpp.

template <char... Digits>
constexpr unsigned_t operator"" _u()
{
    // int is at least 16 bits
    return unsigned_t(detail::parse_unsigned<std::uint16_t, Digits...>());
}





Add Discussion as Guest

Log in