cxxomfort
rel.20211024
Simple backports for C++ - https://ryan.gulix.cl/fossil.cgi/cxxomfort/
|
Backports from C++11.
C++11 adds a large number of features such as variadic templates, constexpr
, static asserts and much improved template support and metaprogramming.
A listing of some of the features backported:
static_assert
, #noexcept
.<cstddef>
: #nullptr
, #std::nullptr_t
.<cstdint>
: The header proper for C++03, and its utilities.<cuchar>
: The typedefs char16_t
, char32_t
, if they are usable in C++03.<algorithm>
: Copying algorithms copy_if()
, copy_n()
, partition_copy()
, etc.<algorithm>
: Querying algorithms minmax()
, minmax_element()
, is_all_of()
, is_any_of()
, is_none_of()
, etc.<forward_list>
: The header proper for C++03, and its utilities.<functional>
: #reference_wrapper
, ref()
/ cref()
.<iterator>
: Global iterator accessors rbegin()
, rend()
.<memory>
: addressof()
, pointer_traits
, allocator_traits
, etc.<numeric>
: iota()
.<random>
: #shuffle_order_engine
and knuth_b
, #uniform_int_distribution
, etc.<string>
: to_string()
, stoul()
and siblings, etc.<system_error>
: errc codes
, #system_error
and others, etc.<type_traits>
: #decay
, #enable_if
, #conditional
, etc.<type_traits>
: Some of the nothrow / trivial traits where applicable.<utility>
: declval()
, move()
, etc.See also: C++03 Backports C++14 Backports C++17 Backports .
&
unary. memory/addressof @ cppreference Randomly shuffle elements in a sequence
uniform_int
in GCC uniform_real
in GCC