std::sub_match::length(3)
π std::sub_match::length(3) β C++ Standard Libary manual realness β¨
okay so bestie, welcome to the std::sub_match::length page from the C++ Standard Libary manual π¦ this one is short, sweet, and lowkey iconic β no cap.
β¨ NAME β¨
std::sub_match::length β and yes, the description is literally also std::sub_match::length π
itβs giving βthe name is the name, periodt.β
π Synopsis π
difference_type length() const;
thatβs the whole signature, bestie β clean, const, and ready to slay π₯
πΈ Parameters πΈ
- (none) β literally no parameters, not a single one, we love a no-argument moment π«Ά
π Return value π
Returns the number of characters in the match, i.e. std::distance(first, second) if the match is valid, 0 otherwise. fr fr, thatβs the whole vibe check: valid match gets the character count, invalid match gets 0 π
β Complexity β
Constant. yup β constant time, no drama, main character energy only π
mwah π β source/version: http://cppreference.com, dated 2024.06.10, page std::sub_match::length(3). bye bestie, go count those characters π§π
π¦ 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