Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
6 14 15 17 21 33 29
//clang 3.8.0 #include <iostream> #include <array> #include <utility> int main() { constexpr std::array<std::pair<int, int>, 2> foo = {{ { 1, 2 }, { 2, 4 } }}; for(auto& elt: foo) { std::cout << elt.first << ' ' << elt.second << std::endl; } std::cout << "Hello, world!\n"; }
run
|
edit
|
history
|
help
0
Specialization on signed types
specialized template
hello,world !ssn2019
test string
function returning a function demo
10226
pointer to pointer
Erase a std::unordered_map::local_iterator by key
why
STL Stack, C ++