Skip to content

Conversation

@Rishabh1925
Copy link
Contributor

Closes #8030. This PR adds the documentation entry for the C++ unordered_set::clear() method. The entry explains that the method empties the set while generally preserving the container's internal capacity. Includes the mandatory Syntax, Example, and Codebyte sections.

@Rishabh1925
Copy link
Contributor Author

Hello @mamtawardhani @codecademy-docs

I've finished creating the new term entry for unordered_set::clear(). The documentation clarifies that the size becomes zero, and the set remains usable for new elements. Ready for review!

@mamtawardhani mamtawardhani self-assigned this Dec 13, 2025
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: clear()

2 participants