docs: Add C++ unordered_set::clear() term entry (#8030)#8097
docs: Add C++ unordered_set::clear() term entry (#8030)#8097Sriparno08 merged 5 commits intoCodecademy:mainfrom
Conversation
|
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! |
Updated the documentation for the clear() method in unordered_set. Adjusted title, description, and example formatting.
mamtawardhani
left a comment
There was a problem hiding this comment.
The PR looks good for a second review! 🚀
|
Hello @mamtawardhani @Sriparno08 Can you please merge this PR, it has been hanging here for too long now I think. |
Sriparno08
left a comment
There was a problem hiding this comment.
Looks good, @Rishabh1925!
|
👋 @Rishabh1925 🎉 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. |
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.