Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F70940919
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
Mon, Jul 8, 09:32
Size
429 B
Mime Type
text/x-c
Expires
Wed, Jul 10, 09:32 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
18455564
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