Explore >> Select a destination


You are here

www.fluentcpp.com
| | www.cppstories.com
4.6 parsecs away

Travel
| | In C++11, we got a handy way to initialize various containers. Rather than using push_back() or insert() several times, you can leverage a single constructor by taking an initializer list. For example, with a vector of strings, you can write: std::vector vec { "abc", "xyz", "***" }; We can also write expressions like: for (auto x : {1, 2, 3}) cout << x << ", "; The above code samples use std::initializer_list and (some compiler support) to hold the values and pass them around. Let's understa......
| | www.foonathan.net
3.9 parsecs away

Travel
| | You probably know that C++20 adds ranges. Finally we can write copy(container, dest) instead of copy(container.begin(), container.end(), dest)! Ranges also do a lot more. Among other things, they add a new way of specifying an iterator to the end - sentinels.
| | blog.jakubholy.net
4.8 parsecs away

Travel
| | THIS IS ONLY A DRAFTContent: Craft | Why lean? | Code quality
| | www.ratik.in
25.4 parsecs away

Travel
| I struggled to understand Functional Programming until I came across this fantastic example.