diff options
author | Sven Gothel <[email protected]> | 2021-01-09 16:11:11 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2021-01-09 16:11:11 +0100 |
commit | 9d1f01c4bddda155f23b620ebb6c2b6bf55173aa (patch) | |
tree | de0e92e5e15af1938b950821d955fec439d69fe8 /include/jau/cow_darray.hpp | |
parent | ba136aa56b96d161daf2d9643f79cc892fa7af12 (diff) |
cow_darray, darray: Add type_trait query is_darray_type<T>::value and test_cow_darray_perf01 with default and use_memmove etc.
Diffstat (limited to 'include/jau/cow_darray.hpp')
-rw-r--r-- | include/jau/cow_darray.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/jau/cow_darray.hpp b/include/jau/cow_darray.hpp index 68ff414..9fd67cd 100644 --- a/include/jau/cow_darray.hpp +++ b/include/jau/cow_darray.hpp @@ -153,6 +153,9 @@ namespace jau { use_memmove, use_realloc> storage_t; typedef std::shared_ptr<storage_t> storage_ref_t; + /** Used to determine whether this type is a darray or has a darray, see ::is_darray_type<T> */ + typedef bool darray_tag; + typedef cow_darray<value_type, allocator_type, size_type, use_memmove, use_realloc> cow_container_t; |