Skip to content

Search topics & cppreference

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

std::text_encoding::environment_is

Checks whether the environment encoding is equal to the encoding whose MIBenum value is the specified value I. A call to this function is equivalent to return environment() == I;.

NotebookLM
template< id I >
static bool environment_is();
(since C++26)

Checks whether the environment encoding is equal to the encoding whose MIBenum value is the specified value I. A call to this function is equivalent to return environment() == I;.

This function is deleted unless the CHAR_BIT is 8.

Template parameters

I - a text_encoding::id whose value to compare

Return value

true if environment() is equal to I; false otherwise.

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.