docs icon indicating copy to clipboard operation
docs copied to clipboard

[Entry] C++ unordered map: reserve()

Open codecademy-docs opened this issue 5 months ago โ€ข 1 comments

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

codecademy-docs avatar Jun 20 '25 10:06 codecademy-docs

Hi,

I can work on this issue!

dancikmad avatar Jun 21 '25 18:06 dancikmad

Hi @codecademy-docs , I would like to work on this issue. Could you please assign this to me?

Mohit5Upadhyay avatar Jun 23 '25 11:06 Mohit5Upadhyay

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.

mamtawardhani avatar Jun 24 '25 05:06 mamtawardhani

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.

Mohit5Upadhyay avatar Jun 24 '25 09:06 Mohit5Upadhyay

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

mamtawardhani avatar Jul 19 '25 07:07 mamtawardhani

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 ? for unordered_map OR i proceed with .reserve() method is present for cpp unordered map

Please let me know if this direction works for the entry โ€” Iโ€™ll begin right after your confirmation. ๐Ÿ™Œ

Mohit5Upadhyay avatar Jul 19 '25 14:07 Mohit5Upadhyay

Hey @Mohit5Upadhyay apologies - it should be reserve only - https://cplusplus.com/reference/unordered_map/unordered_map/reserve/

mamtawardhani avatar Jul 19 '25 17:07 mamtawardhani

๐ŸŒธ Thanks for closing this Issue!

github-actions[bot] avatar Aug 06 '25 06:08 github-actions[bot]