2 ms·
No registration required: http://cpp.sh/4zlbc http://cpp.sh/4zlbc
by nice_byte 10y ago
No registration required: http://cpp.sh/4zlbc http://cpp.sh/4zlbc
- ambrop7 10y agoI was implying a compile-time solution, i.e. where the result of the mapping is constexpr. On second though, maybe it can be done at compile time, with this: http://b.atch.se/posts/constexpr-counter/ http://b.atch.se/posts/constexpr-counter/