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
Updated the documentation for the clear() method in unordered_set. Adjusted title, description, and example formatting.
Copy link
Collaborator

@mamtawardhani mamtawardhani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR looks good for a second review! 🚀

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants