Skip to content

Search topics & cppreference

Search all study topics, concept maps, and 6,587 C++ and C reference pages.

std::text_encoding::name

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

NotebookLM
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

This section is incomplete
Reason: no example

Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.