Explore >> Select a destination


You are here

brevzin.github.io
| | www.cppstories.com
17.2 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
10.4 parsecs away

Travel
| | When should you write a destructor? When a copy constructor? Does it make sense to have assignment only? Quick guidelines: rule of zero, rule of three, rule of five, and everything else.
| | sdowney.org
16.7 parsecs away

Travel
| | A Possible Technique constexpr bool g(int lhs, int rhs) { auto& op = partial_eq; return op.ne(lhs, rhs); } Compiler Explorer with Supporting Code A trait is defined as a template var...
| | poolp.org
117.5 parsecs away

Travel
| TL;DR: I found a printed copy of an assignment I had to do in 2005 back when I was a student to implement a system call for OpenBSD and Linux.