cxx-core-tuple¶
Tuples primitives for bridging the gap between compile-time and run-time.
Brief Tour¶
#include "core/tp/tuple.h"
Installation¶
git clone git@github.com:cpp-core/mp
mkdir mp/build && cd mp/build
CC=clang-mp-14 CXX=clang++-mp-14 cmake -DCMAKE_INSTALL_PREFIX=$HOME/opt ..
make -j4 check # Run the tests
make install # Do the install
Background¶
cxx-core-tuple is part of the cxx-core* family of C++20 based libraries. The cxx-core libraries have two primary goals:
Ergonomics. In the spirit of the
CppCoreGuideLines
, cxx-core aspires to facilitate writing concise, idiomatic code not by force, but by providing a clear path that produces robust, easy to read code. Good code should be fun to write.Components. Modern language platforms provide broad support for first-class library components, while C++ has traditionally only provided a very minimal standard library. cxx-core aspires to provide support for a broad range of libraries that feel like part of the language.
Appendix¶
- include/
- src/
- test/
- src/
- core/
- tuple/
- test_tuple_compare.cpp
- test_tuple_find.cpp
- test_tuple_fold.cpp
- test_tuple_from_array.cpp
- test_tuple_from_container.cpp
- test_tuple_from_vector.cpp
- test_tuple_list.cpp
- test_tuple_map.cpp
- test_tuple_parse.cpp
- test_tuple_permute.cpp
- test_tuple_permute_array.cpp
- test_tuple_print.cpp
- test_tuple_remove.cpp
- test_tuple_to_array.cpp
- test_tuple_to_container.cpp
- test_tuple_to_vector.cpp
- tuple/
- core/
- src/