Scroll to navigation

std::text_encoding::name(3) C++ Standard Libary std::text_encoding::name(3)

NAME

std::text_encoding::name - std::text_encoding::name

Synopsis

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

2026.11.10 http://cppreference.com