aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_cow_darray_perf01.cpp
diff options
context:
space:
mode:
authorSven Göthel <[email protected]>2024-05-19 17:16:04 +0200
committerSven Göthel <[email protected]>2024-05-19 17:16:04 +0200
commit92a8cba53ba39fd6be148e58b6e0ae99caa9da1d (patch)
tree489f51a26f3b371d45a644e8e649204b4ba1473a /test/test_cow_darray_perf01.cpp
parent17a4b17bc5ef6e3bdafa7278c34f86400dd4f309 (diff)
cleanup C++20: Review bugprone-casting-through-void; Fix includes; Use type-traits _v and _t; Use std::string::starts_with(); Use std::numbers::pi_v
Diffstat (limited to 'test/test_cow_darray_perf01.cpp')
-rw-r--r--test/test_cow_darray_perf01.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/test_cow_darray_perf01.cpp b/test/test_cow_darray_perf01.cpp
index 1a8f18a..953a83d 100644
--- a/test/test_cow_darray_perf01.cpp
+++ b/test/test_cow_darray_perf01.cpp
@@ -22,9 +22,7 @@
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <cassert>
-#include <cinttypes>
#include <cstring>
-#include <random>
#include <vector>
#include <jau/test/catch2_ext.hpp>
@@ -58,9 +56,9 @@ static void print_container_info(const std::string& type_id, const Cont &c,
printf("\nContainer Type %s (a darray, a cow %d):\n - Uses memmove %d (trivially_copyable %d); realloc %d; base_of jau::callocator %d; secmem %d; size %d bytes\n",
type_id.c_str(), jau::is_cow_type<Cont>::value,
Cont::uses_memmove,
- std::is_trivially_copyable<typename Cont::value_type>::value,
+ std::is_trivially_copyable_v<typename Cont::value_type>,
Cont::uses_realloc,
- std::is_base_of<jau::callocator<typename Cont::value_type>, typename Cont::allocator_type>::value,
+ std::is_base_of_v<jau::callocator<typename Cont::value_type>, typename Cont::allocator_type>,
Cont::uses_secmem,
(int)sizeof(c));
}