Commit Graph

23 Commits

Author SHA1 Message Date
greg7mdp f0409c6d05 Fix access of protected member, and add test for templated swap() 2022-09-11 12:16:35 -04:00
greg7mdp d24c47fdce Add with_submap api for parallel maps allowing access to submaps under lock protection 2022-07-25 21:37:43 -04:00
greg 43c4c86479 support most extended APIs for sets as we do for maps. 2022-01-22 21:15:55 -05:00
greg 6893d3c259 Added emplace_single test for parallel_hash_map 2022-01-14 08:54:06 -05:00
greg eaf6471e84 added insert_single API (issue #122) 2022-01-13 21:35:52 -05:00
greg e01a5cafe8 Update parallel_hash_map_test.cc 2021-11-07 11:56:58 -05:00
greg 3b5ecf0c2a add for_each extension api for safe keys iteration #113
Thanks @amitma1 for the changes
2021-11-02 16:50:45 -04:00
greg 3ac86cccc7 cleanup tests for extension APIs 2021-03-15 17:41:49 -04:00
greg 75a7da03ab Fix bug in test 2021-03-15 12:24:22 -04:00
greg 08c10a02d5 Add erase_if custom API - issue #84 2021-03-15 11:20:49 -04:00
greg 1bacb6782f clean up the test a little bit... I was getting confused. 2020-10-18 11:23:57 -04:00
greg c32372b342 make test c++11 compatible 2020-10-18 10:53:29 -04:00
greg b1f76095bf compilation issue 2020-10-16 23:11:14 -04:00
greg 05c05f53c0 compilation issue 2020-10-16 23:06:39 -04:00
Brian McKinnon 02127f7bec Add lazy_emplace_l which is similar to try_emplace_l
lazy_emplace returns an iterator that is not thread-safe
2020-10-16 20:05:51 -05:00
greg 5a74cb42ff update try_emplace_l so that the lambda is called only when the key was already present - issue #60 2020-08-16 18:44:12 -04:00
greg 0d229b1159 Add new API try_emplace_l (issue #60) 2020-08-16 18:27:20 -04:00
greg 17f9048990 change mutable if_contains to modify_if 2020-08-07 13:10:31 -04:00
greg 7bbf9dc041 issue #60: add non-const if_contains() which can update the mapped_value. 2020-08-07 12:58:43 -04:00
greg e77d86e49c replace "container_internal" with the shorter "priv" 2020-07-27 09:14:43 -04:00
Brian McKinnon a1349d2b65 Make a single if_contains function to simplify the interface 2020-05-03 10:32:36 -05:00
Brian McKinnon bf7203b3c8 Renamed the thread-safe "contains" to if_contains.
Add tests to parallel_flat_hash_map_mutex_test
2020-05-02 20:45:46 -05:00
Brian McKinnon 0e723143fa Add "if_contains" to parallel_hash_map so the value does not need to be copied to be read in a thread-safe manner
Add tests for parallel_hash_map thread-safe functions.
2020-05-02 16:47:33 -05:00