Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the develop branch, built from commit 0d33bc146b.
PrevUpHomeNext
basic_static_string::starts_with (1 of 3 overloads)

Return whether the string begins with a string.

Synopsis
template<
    typename T>
constexpr bool
starts_with(
    T const& t) const;
Description

Returns true if the string begins with s, and false otherwise.

Complexity

Linear.

Parameters

Name

Description

t

The string view to check for.


PrevUpHomeNext