boostorg / boostorg/unordered

Requirements on keys for bulk visitation are overly restrictive

Open
#263 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
92
Forks
88
PR merge metrics
No merged PRs in 30d

Description

Currently, bulk visitation requires that

>[f]or K = std::iterator_traits::value_type, either K [be] key_type or else Hash::is_transparent and Pred::is_transparent [be] valid member typedefs.

This precludes the scenario where the keys are implicitly convertible to `key_type`, which seems to be overly restrictive. The drawback of allowing this is that conversion from `std::iterator_traits::value_type` to `key_type` will happen more than once for each key (twice, to be precise).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.