Hi All !
I recently noticed that we can submit on Codechef using C++17 now.
So can someone tell me what makes C++17 different or better from C++14 in terms of Competitive Programming
Thanks
Hi All !
I recently noticed that we can submit on Codechef using C++17 now.
So can someone tell me what makes C++17 different or better from C++14 in terms of Competitive Programming
Thanks
https://isocpp.org/files/papers/p0636r0.html
Main things i understand are gcd and lcm functions, 3 dim hypotunuse and map and set splicing to make it faster
You can save some code by structure bindings and template argument deduction.
pair a{3, "abc"}; // no args
auto [one, two] = a;
map<int, string> b;
for (auto &[key, val] : b) {
// can use key and val, and change val
}