std::experi..._view::find(3)
β¨ std::experi..._view::find(3) β¨
okay so bestie, this is the std::experi..._view::find(3) page from the C++ Standard Libary manual π itβs all about std::experimental::basic_string_view::find, and it is literally here to help you find the first substring matching the character sequence you give it. no cap. π¦
π NAME π
std::experimental::basic_string_view::find β std::experimental::basic_string_view::find
π Synopsis π
Finds the first substring equal to the given character sequence. periodt.
(1) (library fundamentals TS)
constexpr size_type find(basic_string_view v, size_type pos = 0) const noexcept;
(2) (library fundamentals TS)
constexpr size_type find(CharT c, size_type pos = 0) const noexcept;
(3) (library fundamentals TS)
constexpr size_type find(const CharT* s, size_type pos, size_type count) const;
(4) (library fundamentals TS)
constexpr size_type find(const CharT* s, size_type pos = 0) const;
- Finds the first occurrence of
vin this view, starting at positionpos. - Equivalent to
find(basic_string_view(&c, 1), pos). - Equivalent to
find(basic_string_view(s, count), pos). - Equivalent to
find(basic_string_view(s), pos).
πΈ Parameters πΈ
vβ view to search forposβ position at which to start the searchcountβ length of substring to search forsβ pointer to a character string to search forchβ character to search for
π Return value π
Position of the first character of the found substring, or npos if no such substring is found. thatβs the whole mood. π
β‘ Complexity β‘
O(size() * v.size()) at worst. at worst, bestie β write that down. π
π See also π
rfindβ find the last occurrence of a substring (public member function)find_first_ofβ find first occurrence of characters (public member function)find_last_ofβ find last occurrence of characters (public member function)find_first_not_ofβ find first absence of characters (public member function)find_last_not_ofβ find last absence of characters (public member function)
ποΈ Category: ποΈ
- * Noindexed pages
mwah π source: http://cppreference.com, version/date: 2024.06.10 β thatβs the cute little footer this page came with, bestie π«Ά
π¦ 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