Skip to content

Conversation

@ylevental
Copy link
Contributor

Description

New term entry for rehash() method under C++ unordered-set at content/cpp/concepts/unordered-set/terms/rehash/rehash.md.

Entry includes:

  • Description of the method and its purpose for optimizing hash table performance
  • Syntax section with parameters (n: minimum bucket count) and return value (void)
  • Example demonstrating bucket count changes and load factor impact
  • Codebyte with compilable code showing pre-allocation before bulk insertions

Uses explicit std:: prefixes consistent with the existing unordered-map/rehash entry.

Issue Solved

Closes #8054

Type of Change

  • Adding a new entry
  • Editing an existing entry (fixing a typo, bug, issues, etc)
  • Updating the documentation

Checklist

  • All writings are my own.
  • My entry follows the Codecademy Docs style guide.
  • My changes generate no new warnings.
  • I have performed a self-review of my own writing and code.
  • I have checked my entry and corrected any misspellings.
  • I have made corresponding changes to the documentation if needed.
  • I have confirmed my changes are not being pushed from my forked main branch.
  • I have confirmed that I'm pushing from a new branch named after the changes I'm making.
  • I have linked any issues that are relevant to this PR in the Issues Solved section.

@CLAassistant
Copy link

CLAassistant commented Dec 5, 2025

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ ylevental
❌ Copilot
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Term Entry] C++ Unordered-sets :rehash()

3 participants