std::match_...lts::cbegin(3)

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

okay so welcome to the std::match_...lts::cbegin(3) page, bestie β€” it's from the C++ Standard Libary manual (yes, that's the manual name, typo and all, and we're keeping it πŸ’…).

πŸ’– NAME πŸ’–

The icons: std::match_results::begin, std::match_results::cbegin β€” and the NAME line is literally std::match_results::begin,std::match_results::cbegin - std::match_results::begin,std::match_results::cbegin. No cap, that's the whole name vibe. πŸŽ€

✨ Synopsis ✨

Here's the exact synopsis, bestie β€” screenshot it, memorize it, put it on your lock screen:

iterator begin() noexcept;               (since C++11)
const_iterator begin() const noexcept;   (since C++11)
const_iterator cbegin() const noexcept;  (since C++11)

So what's the tea? Returns an iterator to the beginning of the list of sub-matches. If match was successful, the iterator will point to the entire matched expression. It's giving first sub-match main character energy πŸ”₯.

🫢 Parameters 🫢

(none) β€” literally no parameters, not a single one, periodt. πŸ’€

🌸 Return value 🌸

Iterator to the first sub-match. That's it. That's the whole return value. πŸ’–

⭐ Complexity ⭐

Constant. Lowkey iconic, highkey constant. ✨

πŸ¦‹ See also πŸ¦‹

  • end β€” returns iterator to the end of the list of sub-matches
  • cend β€” (public member function)

Cute sign-off: source/version is http://cppreference.com, dated 2024.06.10 β€” bye bestie, go slay those sub-matches πŸ’œ

πŸ“¦ where this page comes from