# std::experimental::basic_string_view<CharT,Traits>::empty

> C++ Atlas: `cppatlas.com/w/cpp/experimental/basic_string_view/empty` | Source: https://en.cppreference.com/w/cpp/experimental/basic_string_view/empty | Domain: Technical specifications

Checks if the view has no characters, i.e. whether size() == 0.

## Official Specification Summary (cppreference)

```cpp
constexpr bool empty() const noexcept; // (library fundamentals TS)
```

Checks if the view has no characters, i.e. whether `size() == 0`.

### Parameters

(none)

### Return value

`true` if the view is empty, `false` otherwise

### Complexity

Constant.

### See also

- [`size`](https://en.cppreference.com/w/cpp/experimental/basic_string_view/size), [`length`](https://en.cppreference.com/w/cpp/experimental/basic_string_view/size): returns the number of characters (public member function)
- [`max_size`](https://en.cppreference.com/w/cpp/experimental/basic_string_view/max_size): returns the maximum number of characters (public member function)

---
Attribution: content from https://en.cppreference.com/w/cpp/experimental/basic_string_view/empty (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.