cxxomfort  rel.20211024
Simple backports for C++ - https://ryan.gulix.cl/fossil.cgi/cxxomfort/

Cxxomfort independent utilities

cxxomfort ships with a few independent utilities not dependent on features of specific C++ Standards. These are accessed by directly including the header:

// alternatively included from general cxxomfort tools

The header is not intended to be directly included, but can be done so nonetheless. Still, including most of the backport header files guarantees its inclusion.

All features here are directly under the cxxomfort namespace (unless they are eg.: macros).

Interfaces

The following is an incomplete listing of features available under this namespace:

Generalistic Tools

Code Generation

Utilities

Page
Class array< T, N >
Implementation of std::array
Class array_ref< T, IdxType >
array_ref - a non-owning view to sequences of contiguous data
File cxxo-utils.hpp
Header File
Member cxxomfort::bool_once (bool &flag) CXXO_NOEXCEPTNOTHROW
Manages a bool flag so that it evaluates to true once.
Member cxxomfort::max (constexpr_t, T a, T b) CXXO_NOEXCEPTNOTHROW
constexpr version of std::max()
Member cxxomfort::min (constexpr_t, T a, T b) CXXO_NOEXCEPTNOTHROW
constexpr version of std::min()
Member cxxomfort::None_t
"None" type
Class prio< I >
Priority tag for ordering specializations
Class static_abs< T, u >
Compile-time absolute value of an integral, pre-C++11.
Class static_clamp< T, t, m, M >
Compile-time clamp a valur between two values, pre-C++11.
Class static_intlog< N, Ba >
Compile-time integer logarithm on the Naturals, pre-C++11.
Class static_intpow< Int, x, y >
Compile-time integer exponentiation, pre-C++11.
Class static_sign< T, u >
Compile-time sign of an integer