mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
991fa6682e
Closes issue #550, which highlighted overhead in not_null::get for larger types such as shared_ptr. Every call to get would return a copy of the contained value. This PR implements Herb's suggestion for changing the return type of not_null::get. The not_null's value will now only be copied if it is "trivially copyable"; otherwise, it will be returned by const reference. Note: this change also forces the returned copy to be const. |
||
---|---|---|
.. | ||
algorithm_tests.cpp | ||
assertion_tests.cpp | ||
at_tests.cpp | ||
byte_tests.cpp | ||
CMakeLists.txt | ||
CMakeLists.txt.in | ||
deathTestCommon.h | ||
no_exception_ensure_tests.cpp | ||
notnull_tests.cpp | ||
owner_tests.cpp | ||
span_compatibility_tests.cpp | ||
span_ext_tests.cpp | ||
span_tests.cpp | ||
strict_notnull_tests.cpp | ||
string_span_tests.cpp | ||
utils_tests.cpp |