GSL/tests
dmitrykobets-msft 991fa6682e
Prevent inefficient copying when using not_null::get (#1059)
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.
2022-10-11 16:49:16 -07:00
..
algorithm_tests.cpp Fix/implement C++2020 compilation, tests, and CI (#1017) 2021-12-09 14:54:06 -08:00
assertion_tests.cpp gsl::at behavior change regarding gsl::span (#985) 2021-05-20 18:18:08 -07:00
at_tests.cpp Fix/implement C++2020 compilation, tests, and CI (#1017) 2021-12-09 14:54:06 -08:00
byte_tests.cpp gsl::at behavior change regarding gsl::span (#985) 2021-05-20 18:18:08 -07:00
CMakeLists.txt Suppress -Wfloat-equal warning in implementation of gsl::narrow (#1043) 2022-04-14 11:08:28 -07:00
CMakeLists.txt.in Fix googletest build failure with gcc 11.1+ (#1015) 2021-11-17 12:24:40 -08:00
deathTestCommon.h gsl::at behavior change regarding gsl::span (#985) 2021-05-20 18:18:08 -07:00
no_exception_ensure_tests.cpp Fix iPhone simulator CI (#981) 2021-05-13 10:52:09 -07:00
notnull_tests.cpp Prevent inefficient copying when using not_null::get (#1059) 2022-10-11 16:49:16 -07:00
owner_tests.cpp gsl::at behavior change regarding gsl::span (#985) 2021-05-20 18:18:08 -07:00
span_compatibility_tests.cpp Fix/implement C++2020 compilation, tests, and CI (#1017) 2021-12-09 14:54:06 -08:00
span_ext_tests.cpp Fix/implement C++2020 compilation, tests, and CI (#1017) 2021-12-09 14:54:06 -08:00
span_tests.cpp Make gsl::span's iterators use the contiguous_iterator concept (#1035) 2022-03-22 13:20:54 -07:00
strict_notnull_tests.cpp gsl::at behavior change regarding gsl::span (#985) 2021-05-20 18:18:08 -07:00
string_span_tests.cpp Fix/implement C++2020 compilation, tests, and CI (#1017) 2021-12-09 14:54:06 -08:00
utils_tests.cpp Clean up final_act and finally, closes #846 (#977) 2022-10-10 16:09:21 -07:00