cxxomfort
rel.20211024
Simple backports for C++ - https://ryan.gulix.cl/fossil.cgi/cxxomfort/
|
Utilities for the initialization of sequence-liek objects / containers.
Defines the dual macros CXXO_I12N_BEG
and CXXO_I12N_END
that provide initialization semantics for containers similar to the initializer_list constructors in C++11.
It's called "i12n" from "initialization", the same way "i18n" is used for "internationalization".
Interfaces defined:
Sample usage:
Requirements:
Requirements:
value_type
member.Because of these requirements and other reasons intrinsic to its structure as a pseudo-container different from the C++ template sequences, i12n can not work with std::array<...>
.