# operator<<(std::experimental::basic_string_view)

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

Equivalent to os << v.to_string().

## Official Specification Summary (cppreference)

```cpp
// Defined in header <experimental/string_view>

template <class CharT, class Traits>
std::basic_ostream<CharT, Traits>&
    operator<<(std::basic_ostream<CharT, Traits>& os,
               std::basic_string_view <CharT, Traits> v); // (library fundamentals TS)
```

Equivalent to `os << v.to_string()`.

### Parameters

- `os` - a character output stream
- `v` - the view to be inserted

### Return value

`os`

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