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
Pointer array
template specialization inheritance solution
Integer conversions
Linker error while passing constexpr variable as const &
ljblblljkl
Store Information in Structure and Display it
Crow unordered_map Quiz
vector destruction - clang
Task on Задача C. Белочка
Derivation of the 0x9E3779B97F4A7C17u constant