Explore >> Select a destination


You are here

thecodinginterface.com
| | www.cppstories.com
13.3 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......
| | developernote.com
15.8 parsecs away

Travel
| |
| | brevzin.github.io
20.8 parsecs away

Travel
| | Several years ago, I wrote a post about the complexities of implementing comparison operators for optional: Getting in trouble with mixed comparisons. That post was all about how, even just for ==, making a few seemingly straightforward decisions leads to an ambiguity that different libraries handle differently.
| | www.laurentluce.com
39.4 parsecs away

Travel
|