Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F73920648
check_constexpr_map.cc
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Jul 25, 07:01
Size
429 B
Mime Type
text/x-c
Expires
Sat, Jul 27, 07:01 (2 d)
Engine
blob
Format
Raw Data
Handle
19246503
Attached To
rAKA akantu
check_constexpr_map.cc
View Options
#include <iostream>
#include "aka_constexpr_map.hh"
int main() {
akantu::details::static_switch_dispatch(
std::tuple<std::integral_constant<int, 1>,
std::integral_constant<int, 2>>{},
[](auto && type) {
std::cout << std::decay_t<decltype(type)>::value << std::endl;
},
2, [](auto && /*type*/) { std::cout << "Default" << std::endl; },
std::make_index_sequence<2>{});
}
Event Timeline
Log In to Comment