docs
docs copied to clipboard
[Entry] C++ unordered map: reserve()
Reason/inspiration (optional)
We would like a new entry on the term reserve() under unordered_map in C++. The entry should be in content/cpp/concepts/unordered-map/terms/reserve/reserve.md
The entry should include the following:
- A description of the term
- A ##Syntax section that includes the syntax of the method and its details
- An ##Example section that show an example of the current entry.
- An ## Codebyte section that have a compilable code inside it showing the current entry in use. Use ```codebyte/cpp to add compilable code.
Please refer to the term entry template, content standards and markdown style guide when working on the PR for this issue.
Entry Type (select all that apply)
New Term for Existing Concept Entry
Code of Conduct
- [x] By submitting this issue, I agree to follow Codecademy Doc's Code of Conduct.
For Maintainers
- [x] Labels added
- [ ] Issue is assigned
Hi,
I can work on this issue!
Hi @codecademy-docs , I would like to work on this issue. Could you please assign this to me?
Hey @dancikmad just assigned an issue to you, so assigning this to @Mohit5Upadhyay
Hey @Mohit5Upadhyay Youโre assigned ๐ In addition to the documents linked in the description, please also look at the Contribution Guide. After creating a PR, the maintainer(s) (with the collaborator label) will add comments/suggestions to address any revisions before approval.
Is this your first contribution to Codecademy Docs? If so, weโre curious to know how you found out about contributing to Docs.
hey @mamtawardhani , please clarify : which to add as new entry for C++ unordered map: reserve() (Mention on the Issue ) OR content/cpp/concepts/unordered-map/terms/reverse/reverse.md (Mention in issue description)
there is confusion between reserve() & reverse. Please clarify it so i will work on this issue.
hey @mamtawardhani , please clarify : which to add as new entry for C++ unordered map:
reserve()(Mention on the Issue ) OR content/cpp/concepts/unordered-map/terms/reverse/reverse.md(Mention in issue description)there is confusion between
reserve()&reverse. Please clarify it so i will work on this issue.
Hey @Mohit5Upadhyay reverse() is the term needed
Hey @mamtawardhani,
Hey @Mohit5Upadhyay reverse() is the term needed
Thanks for the clarification regarding reverse().
Just to confirm before I proceed โ std::unordered_map in C++ does Not have a .reverse() method.
Would it be appropriate if I document:
- That
reverse()is why reverse() not available ? forunordered_mapOR i proceed with.reserve()method is present forcpp unordered map
Please let me know if this direction works for the entry โ Iโll begin right after your confirmation. ๐
Hey @Mohit5Upadhyay apologies - it should be reserve only - https://cplusplus.com/reference/unordered_map/unordered_map/reserve/
๐ธ Thanks for closing this Issue!