C++23 formalized the concepts of tuple-like and pair-like types. The set of tuple-like types is currently: std::array, std::pair, std::tuple, std::ranges::subrange and std::complex (since C++26). Pair-like types are tuple-like types that have two elements. All tuple-like types support a base set of operations: • assignment • comparisons • std::apply, std::make_from_tuple • std::tuple_size, std::tuple_element • std::tuple_cat Compiler Explorer link: https://lnkd.in/eE3SDWqd #cpp #cplusplus #coding #programming #dailybiteofcpp
This looks very promising.
TKH Security•295 followers
2y15 years ago I hated C++ and I loved python. Now C++ (well, the STL, still not in the language) is becoming more and more pythonic but still with the C++ look & feel.