cxxomfort  rel.20210622
Simple backports for C++ - http://ryan.gulix.cl/fossil.cgi/cxxomfort/
C++17 Backports

Backports from C++17.

A listing of some of the features backported:

See also: C++14 Backports C++20 Backports .

Member cxxomfort::cxxostd::as_ptr_const (T *const t) noexcept
as_const
Member cxxomfort::cxxostd::count (It ini, It fin, T const &tv)
count
Member cxxomfort::cxxostd::count_if (It ini, It fin, Pred p)
count_if
Member cxxomfort::cxxostd::data (C const &container)
empty
Member cxxomfort::cxxostd::data (C &container) -> decltype(container.data())
data
Member cxxomfort::cxxostd::for_each_n (II first, Size n, UnaryFunction f)
for_each_n
Member cxxomfort::cxxostd::gcd (Num1 n1, Num2 n2) CXXO_NOEXCEPT
gcd
Member cxxomfort::cxxostd::lcm (Num1 n1, Num2 n2) CXXO_NOEXCEPT
lcm
Member cxxomfort::cxxostd::size (C &c)
size
Member cxxomfort::cxxostd::timespec_get (struct timespec *ts, int base)
timespec_get