istolboff
istolboff
Let's say I have the following class with a single method: ``` public static class C { public static int M(int v1, int v2) { if (v1 < v2) {...
We now have two guidelines: ``` F.22: Use a T& for an in-out-parameter ``` and ``` F.23: Use T& for an out-parameter that is expensive to move (only) ``` that...
There is a not_null template for pointers that cannot be null. Wouldn't it be beneficial to have not_negative template for integers that cannot be negative? For example, gsl::span.size() returns the...