Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Requirements on keys for bulk visitation are overly restrictive

Open
#263 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp
Domain
backend

Research direction

Start by tracing the bulk visitation requirements for FwdIterator value types, key_type, Hash, and Pred in the unordered module. Check the existing tests or add focused coverage for keys implicitly convertible to key_type, and consider the work complete when that scenario is accepted without weakening the stated transparent-hash requirements.

Written by the indexing model from the issue text.

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<FwdIterator>::value_type to key_type will happen more than once for each key (twice, to be precise).

Dominant language
C++
Stars
92
Forks
88
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from boostorg/unordered

All issues in boostorg/unordered

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.