[string.starts.with]

# 27 Strings library [[strings]](./#strings)

## 27.4 String classes [[string.classes]](string.classes#string.starts.with)

### 27.4.3 Class template basic_string [[basic.string]](basic.string#string.starts.with)

#### 27.4.3.8 String operations [[string.ops]](string.ops#string.starts.with)

#### 27.4.3.8.5 basic_string​::​starts_with [string.starts.with]

[ð](#lib:starts_with,basic_string)

`constexpr bool starts_with(basic_string_view<charT, traits> x) const noexcept;
constexpr bool starts_with(charT x) const noexcept;
constexpr bool starts_with(const charT* x) const;
`

[1](#1)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/strings.tex#L4657)

*Effects*: Equivalent to:return basic_string_view<charT, traits>(data(), size()).starts_with(x);
