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

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

Returns reference to the first character in the view.

## Official Specification Summary (cppreference)

```cpp
constexpr const_reference front() const; // (library fundamentals TS)
```

Returns reference to the first character in the view.

### Parameters

(none)

### Return value

reference to the first character, equivalent to `operator[](0)`.

### Complexity

Constant.

### See also

- [`back`](https://en.cppreference.com/w/cpp/experimental/basic_string_view/back): accesses the last character (public member function)

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