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

◆ find_last_of() [4/4]

template<typename _CharT, typename _Traits, typename _Alloc, template< typename, typename, typename > class _Base>
size_type __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::find_last_of ( const _CharT * __s,
size_type __pos = npos ) const
inline

Find last position of a character of C string.

Parameters
__sC string containing characters to locate.
__posIndex of character to search back from (default end).
Returns
Index of last occurrence.

Starting from __pos, searches backward 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 1898 of file vstring.h.

1899 {
1901 return this->find_last_of(__s, __pos, traits_type::length(__s));
1902 }
#define __glibcxx_requires_string(_String)
Definition debug.h:81
size_type find_last_of(const __versa_string &__str, size_type __pos=npos) const noexcept
Find last position of a character of string.
Definition vstring.h:1868
Template class __versa_string.
Definition vstring.h:63