Skip to content

feat: Add Term Entry for C++ Arrays begin() #6808

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 14 commits into from

Conversation

Kenxpx
Copy link

@Kenxpx Kenxpx commented May 19, 2025

Description

This Pull Request adds a new term entry for C++ Arrays begin().
The new file is located at content/cpp/concepts/arrays/terms/begin/begin.md.

This entry explains how to use begin() to obtain an iterator pointing to the first element in C++ std::array containers, as well as how to use std::begin() for C-style arrays. The entry includes:

  • A definition of the term.
  • Syntax details for both std::array::begin() and std::begin().
  • An illustrative example showing usage with both std::array and C-style arrays.
  • A runnable Codebyte example focusing on std::array::begin().

This contribution aims to provide clear and comprehensive documentation for this fundamental C++ array operation.

Issue Solved

Closes #6787

Type of Change

  • Adding a new entry
  • Editing an existing entry (fixing a typo, bug, issues, etc)
  • Updating the documentation

Checklist

  • All writings are my own.
  • My entry follows the Codecademy Docs style guide.
  • My changes generate no new warnings.
  • I have performed a self-review of my own writing and code.
  • I have checked my entry and corrected any misspellings.
  • I have made corresponding changes to the documentation if needed. - [x] I have confirmed my changes are not being pushed from my forked main branch.
  • I have confirmed that I'm pushing from a new branch named after the changes I'm making (cpp-arrays-begin-entry).
  • I have linked any issues that are relevant to this PR in the Issues Solved section.

@CLAassistant
Copy link

CLAassistant commented May 19, 2025

CLA assistant check
All committers have signed the CLA.

@mamtawardhani mamtawardhani self-assigned this May 20, 2025
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.

Hey @Kenxpx, thank you for contributing to Codecademy Docs, the entry is nicely written! 😄

I've suggested a few changes, could you please review and modify those at your earliest convenience? Thank you! 😃

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.

Hey @Kenxpx , thank you for contributing to Codecademy Docs, the entry is nicely written! 😄

I've suggested a few changes, could you please review and modify those at your earliest convenience? Thank you! 😃

@Kenxpx Kenxpx requested a review from mamtawardhani May 22, 2025 18:08
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.

Looks good for a second round of review! 🚀

Copy link
Author

@Kenxpx Kenxpx left a comment

Choose a reason for hiding this comment

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

ok

@Kenxpx Kenxpx closed this by deleting the head repository May 29, 2025
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++ Arrays: begin()
3 participants