bsl::basic_string::find_last_of

find_last_of overloads

Synopses

Declared in <bslstl_string.h>

Find the last character belonging to the specified set.

size_type
find_last_of(
    CHAR_TYPE character,
    size_type position = npos) const;
» more...

Find the last character belonging to the specified set.

size_type
find_last_of(
    basic_string const& characterString,
    size_type position = npos) const noexcept;
» more...

Return the position of the last occurrence of the specified characterString substring, or npos if not found.

size_type
find_last_of(
    CHAR_TYPE const* characterString,
    size_type position = npos) const;
» more...

Find the last character belonging to the specified set.

template<class STRING_VIEW_LIKE_TYPE>
size_type
find_last_of(
    STRING_VIEW_LIKE_TYPE const& characterString,
    size_type position = npos) const noexcept(true);
» more...

Find the last character belonging to the specified set.

size_type
find_last_of(
    CHAR_TYPE const* characterString,
    size_type position,
    size_type numChars) const;
» more...

Return Value

position of the last matching character, or npos

Parameters

NameDescription
charactercharacter value
positionstarting index
characterStringpointer to characters
numCharsnumber of characters