[string.view.capacity]

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

## 27.3 String view classes [[string.view]](string.view#capacity)

### 27.3.3 Class template basic_string_view [[string.view.template]](string.view.template#string.view.capacity)

#### 27.3.3.5 Capacity [string.view.capacity]

[ð](#lib:size,basic_string_view)

`constexpr size_type size() const noexcept;
constexpr size_type length() const noexcept;
`

[1](#1)

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

*Returns*: *size_*[.](#1.sentence-1)

[ð](#lib:max_size,basic_string_view)

`constexpr size_type max_size() const noexcept;
`

[2](#2)

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

*Returns*: The largest possible number of char-like objects that can be referred to by a basic_string_view[.](#2.sentence-1)

[ð](#lib:empty,basic_string_view)

`constexpr bool empty() const noexcept;
`

[3](#3)

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

*Returns*: *size_* == 0[.](#3.sentence-1)
