std::match_results::length(3)
π std::match_results::length(3) π
okay bestie, welcome to the C++ Standard Libary manual page, section 3 β manual name folded in right here so we donβt have to copy the header line, youβre welcome π
. Weβre talking about std::match_results::length, and itβs literally giving βhow long is this match, actually?β energy. β¨
πΈ NAME πΈ
std::match_results::lengthβstd::match_results::length
π Synopsis π
difference_type length( size_type n = 0 ) const; (since C++11)
Returns the length of the specified sub-match. π«Ά
- If
n == 0, the length of the entire matched expression is returned. π― - If
n > 0 && n < size(), the length of then^thsub-match is returned. π - If
n >= size(), a length of the unmatched match is returned. π
The call is equivalent to (*this)[n].length(). No cap, thatβs the whole vibe. π
π¦ Parameters π¦
nβ integral number specifying which match to examine.
π Return value π
The length of the specified match or sub-match. Thatβs it, thatβs the tea. π
β¨ See also β¨
operator[]β returns specified sub-match (public member function).lengthβ returns the length of the match (if any) (public member function ofstd::sub_match<BidirIt>).
byeee bestie π β this iconic little page came from source http://cppreference.com, dated 2024.06.10, and itβs the std::match_results::length(3) page. periodt. π
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms