Namespaces
Variants
Actions

std::text_encoding::environment_is

From cppreference.com
< cpp‎ | text‎ | text encoding
 
C++
 
Text processing library
 
std::text_encoding
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.

[edit] Template parameters

I - a text_encoding::id whose value to compare

[edit] Return value

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

[edit] Example

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant