You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[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<FwdIterator>::value_type to key_type will happen more than once for each key (twice, to be precise).
The text was updated successfully, but these errors were encountered:
joaquintides
changed the title
Requirements on keys for bulk visitation are overly restrictive.
Requirements on keys for bulk visitation are overly restrictive
Jul 13, 2024
Currently, bulk visitation requires that
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 fromstd::iterator_traits<FwdIterator>::value_type
tokey_type
will happen more than once for each key (twice, to be precise).The text was updated successfully, but these errors were encountered: