std::experi...iew::begin,(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’– std::experi...iew::begin,(3) πŸ’–

okay bestie, welcome to the C++ Standard Libary page for this absolute little iterator icon. We're talking std::experi...iew::begin,(3) β€” yes, the title is literally truncated like that, no cap β€” and the manual name up top is C++ Standard Libary (spelled exactly like that in the source, we're not fixing it πŸ’…). This whole page is serving library-fundamentals-TS energy, and it's about getting an iterator to the first character of the view. πŸ¦‹


🌸 NAME 🌸

  • std::experimental::basic_string_view::begin, β€” the main character of this page.
  • the full NAME line is std::experimental::basic_string_view::begin, - std::experimental::basic_string_view::begin,, so both copies and that little dash are staying. periodt.

✨ Synopsis ✨

constexpr const_iterator begin() const noexcept;   (library fundamentals TS)
constexpr const_iterator cbegin() const noexcept;  (library fundamentals TS)

so yeah, both begin() and cbegin() are here, both constexpr, both returning const_iterator, both noexcept, and both tagged as library fundamentals TS. lowkey iconic. πŸ’…

Returns an iterator to the first character of the view.

there's also a diagram reference in the original: range-begin-end.svg. cute little range-begin-end visual moment. πŸŽ€


πŸŽ€ Parameters πŸŽ€

(none)

like, none at all. it's giving zero-argument main character energy. ✨


πŸ¦‹ Return value πŸ¦‹

const_iterator to the first character.

that's the whole vibe: first character, iterator, slay. πŸ’–


πŸ”₯ Complexity πŸ”₯

Constant.

not linear, not messy, just constant. we love a predictable queen. πŸ‘‘


🌈 See also 🌈

  • end β€” returns an iterator to the end.
  • cend β€” (public member function).

both of these are linked in the original SEE ALSO energy, so go off and meet the end/cend besties too. 🫢


πŸ’€ Category πŸ’€

  • Noindexed pages

(yes, that's the category listed at the bottom of the source, and we're keeping it fr fr.)


okay that's the whole page, bestie. this was brought to you by http://cppreference.com, version/date 2024.06.10, for std::experi...iew::begin,(3) β€” go get that first character and have a beautiful day. πŸ’œβœ¨

πŸ“¦ where this page comes from