picolibrary

General Utilities

General utilities are defined in the include/picolibrary/utility.h/source/picolibrary/utility.cc header/source file pair.

Table of Contents

  1. to_underlying()
  2. to_unsigned()

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.