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

Backports from C++20.

A listing of some of the features backported:

See also: C++17 Backports C++23 Backports .

Member cxxomfort::cxxostd::bind_front (Fn &&callable, Binds &&... args)
Wraps a function and its first n arguments as a callable.
Member cxxomfort::cxxostd::bit_width (U u) noexcept

Bit operations

Member cxxomfort::cxxostd::to_array (T(&arr)[N]) -> std::array< typename std::remove_cv< T >::type, N >
Creates a std::array from a native C array.
Member cxxomfort::fix::count (cxxomfort::constexpr_t const, It ini, It fin, T const &value) noexcept
Adding constexpr capability to std::count()
Member cxxomfort::fix::count_if (cxxomfort::constexpr_t const, It ini, It fin, Fn &&fn) noexcept
Adding constexpr capability to std::count_if()
Member cxxomfort::fix::find (cxxomfort::constexpr_t const, It ini, It fin, T const &value)
Adding constexpr capability to std::find()
Member cxxomfort::fix::find_if (cxxomfort::constexpr_t const, It ini, It fin, Fn &&fn)
Adding constexpr capability to std::find_if()
Member cxxomfort::std::endian
Endianness
Member std::bit_cast (From const &from)
Reinterpret the bit pattern of an object as an object of a different type.