Skip to content

Comments

docs: Add C++ unordered_set::clear() term entry (#8030)#8097

Merged
Sriparno08 merged 5 commits intoCodecademy:mainfrom
Rishabh1925:term/cpp-unordered-set-clear-8030
Feb 19, 2026
Merged

docs: Add C++ unordered_set::clear() term entry (#8030)#8097
Sriparno08 merged 5 commits intoCodecademy:mainfrom
Rishabh1925:term/cpp-unordered-set-clear-8030

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! 🚀

@Rishabh1925
Copy link
Contributor Author

Hello @mamtawardhani @Sriparno08

Can you please merge this PR, it has been hanging here for too long now I think.

@Sriparno08 Sriparno08 self-assigned this Feb 13, 2026
@Sriparno08 Sriparno08 added status: under review Issue or PR is currently being reviewed and removed status: ready for next review labels Feb 13, 2026
Copy link
Collaborator

@Sriparno08 Sriparno08 left a comment

Choose a reason for hiding this comment

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

Looks good, @Rishabh1925!

@Sriparno08 Sriparno08 merged commit 32412d8 into Codecademy:main Feb 19, 2026
7 checks passed
@github-actions
Copy link

👋 @Rishabh1925
You have contributed to Codecademy Docs, and we would like to know more about you and your experience.
Please take a minute to fill out this four question survey to help us better understand Docs contributions and how we can improve the experience for you and our learners.
Thank you for your help!

🎉 Your contribution(s) can be seen here:

https://www.codecademy.com/resources/docs/cpp/unordered-set/clear

Please note it may take a little while for changes to become visible.
If you're appearing as anonymous and want to be credited, visit the linked accounts page and ensure that your GitHub account is linked.

@Sriparno08 Sriparno08 added status: review 2️⃣ completed and removed status: under review Issue or PR is currently being reviewed labels Feb 19, 2026
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()

3 participants