General utilities are defined in the
include/picolibrary/utility.h
/source/picolibrary/utility.cc
header/source file pair.
to_underlying()
To convert an enum value to its underlying type, use the ::picolibrary::to_underlying()
utility.
to_unsigned()
To convert a potentially signed integer to its bitwise unsigned integer equivalent, use
the ::picolibrary::to_unsigned()
utility.