starts_with overloads

Synopses

Declared in <bslstl_string.h>

Return true if this string starts with the specified character.

bool
starts_with(CHAR_TYPE character) const noexcept;

Return true if this string starts with the specified characterString.

bool
starts_with(basic_string_view<CHAR_TYPE, CHAR_TRAITS> characterString) const noexcept;

Return true if this string starts with the specified C‐string.

bool
starts_with(CHAR_TYPE const* characterString) const;

Return Value

true if this string starts with the sequence, otherwise false

Parameters

Name

Description

character

character value

characterString

pointer to characters

Created with MrDocs