GSL/include
saurabh singh d6995e311e not_null class makes an unnecessary copy,can't be used effectively with unique_ptr
Passing T by const ref instead of by value. This is important specially to prevent perf implications when this class is used for heavy to copy objects. A common example would  be shared_ptr. Another way to prevent two versions of the constructor is to have a single constructor and move the value. <code> not_null(T t) : ptr_(move(t)) {...} </code> This gives best of both worlds. For most cases I would have preferred this. But this can result in slightly bigger code since for the cases where this class is invoked from a copy of he object, the caller has to do the job of creating the copy.
2015-10-01 01:06:13 +05:30
..
array_view.h Correct misleading text in static_assert. Fixes issue #67. 2015-09-29 16:54:00 -07:00
fail_fast.h Commit to address issue #103... 2015-09-30 12:50:42 -04:00
gsl.h not_null class makes an unnecessary copy,can't be used effectively with unique_ptr 2015-10-01 01:06:13 +05:30
string_view.h Renamed namespace to 'gsl'. Renamed macro to configure testing. 2015-09-29 16:41:37 -07:00