libstdc++
GNU C++ library
Loading...
Searching...
No Matches

◆ find_first_of() [6/8]

template<typename _CharT, typename _Traits, typename _Alloc>
size_type std::basic_string< _CharT, _Traits, _Alloc >::find_first_of ( const _CharT * __s,
size_type __pos = 0 ) const
inlinenoexcept

Find position of a character of C string.

Parameters
__sString containing characters to locate.
__posIndex of character to search from (default 0).
Returns
Index of first occurrence.

Starting from __pos, searches forward for one of the characters of __s within this string. If found, returns the index where it was found. If not found, returns npos.

Definition at line 2617 of file cow_string.h.

2619 {
2622 }
#define __glibcxx_requires_string(_String)
Definition debug.h:81
constexpr size_type find_first_of(const basic_string &__str, size_type __pos=0) const noexcept
Find position of a character of string.
Managing sequences of characters and character-like objects.