C++
CMake
c++ source #1
Output
Compile to binary object
Link to binary
Execute the code
Intel asm syntax
Demangle identifiers
Filters
Unused labels
Library functions
Directives
Comments
Horizontal whitespace
Debug intrinsics
Compiler
CPP Meta
Clang 18.1.8
Options
Source code
#include <concepts> using namespace std::meta; template <class... Ts> struct tuple { % [](class_builder& b){ int k = 0; for (type T : std::meta::type_list{^Ts...}) { append_field(b, cat("m", k++), T); } }(); }; int main() { tuple<int, char, double> elems; static_assert(std::same_as<decltype(elems.m0), int>); static_assert(std::same_as<decltype(elems.m1), char>); static_assert(std::same_as<decltype(elems.m2), double>); }
Become a Patron
Sponsor on GitHub
Donate via PayPal
Source on GitHub
Mailing list
Installed libraries
Wiki
Report an issue
How it works
Contact the author
CE on Mastodon
About the author
Statistics
Changelog
Version tree