EASTL icon indicating copy to clipboard operation
EASTL copied to clipboard

eastl::string_hash_map doesn't have move constructor and operator

Open snaulX opened this issue 11 months ago • 1 comments

I needed to compile non-copyable class with eastl::string_hash_map member but seems like it doesn't implement move semantics. Is it bug or design decision?

snaulX avatar Jan 19 '25 04:01 snaulX

This is an oversight in the implementation and missing functionality.

Note that in the upcoming version of eastl the string_hash_map type has limited utility because we have implemented heterogeneous lookup for associative containers, eg. hash_map, which provides the same optimization. From the release notes:

Add support for C++14's heterogeneous comparison lookup (N3657), C++23's heterogeneous erasure (P2077R3) and C++26's heterogeneous insertion (P2363R5) functions for set, multiset, hash_set, hash_multiset, fixed_set, fixed_multiset, fixed_hash_set, fixed_hash_multiset, vector_set, vector_multiset, vector_map & vector_multimap.

See overloads 3 & 4 here for an explanation of heterogeneous comparison lookup.

jhopkins-ea avatar Jan 20 '25 00:01 jhopkins-ea