# std::text_encoding::name

> C++ Atlas: `cppatlas.com/w/cpp/text/text_encoding/name` | Source: https://en.cppreference.com/w/cpp/text/text_encoding/name | Domain: Text processing | Standards: C++26

Returns the primary name of *this. Equivalent to return name_;.

## Official Specification Summary (cppreference)

```cpp
constexpr const char* name() const noexcept; // (since C++26)
```

Returns the primary name of `*this`. Equivalent to `return name_;`.

Accessing elements of `name_` outside of the range `[name(),` `name() + std::strlen(name()) + 1)` is undefined behavior.

### Parameters

(none)

### Return value

Primary name `name_` that is represented by a null-terminated byte string.

### Example

> Note: This section is incomplete Reason: no example

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