cxxomfort  rel.20210622
Simple backports for C++ - http://ryan.gulix.cl/fossil.cgi/cxxomfort/
<cstddef>

Features related to Standard header <cstddef>.

Author
Luis Machuca Bezzaza <luis [dot] machuca [at] gulix [dot] cl>

Interfaces

Features included in this section and mapped to global nsmespace or std:::

Features also without a specific header:

Non-backport features (cxxomfort::fix):

See also
{lwg2251}

std::byte conversions

The library exposes the following names under cxxomfort::fix in order to work with variables of type std::byte :

byte b = cxxomfort::fix::to_byte('c'); // creates byte from uchar
unsigned c = cxxomfort::fix::to_integer<unsigned>(b); // obtains the uchar
unsigned d = cxxomfort::fix::to_value(b); // synonym for the above

See Also