Workalike compatibility version of std::chars_format from C++17.

Synopsis

Declared in <absl/strings/charconv.h>

enum class chars_format : int;

Description

This is an bitfield enumerator which can be passed to absl::from_chars to configure the string‐to‐float conversion.

Members

Name

Description

scientific

A matching number must contain an exponent.

fixed

An exponent will never match.

hex

A hexadecimal float is parsed, without a "0x" prefix.

general

Either fixed or scientific notation may match.

Non-Member Functions

Name

Description

operator&

Computes the bitwise AND of two chars_format values.

operator&=

Assigns to lhs the bitwise AND of lhs and rhs.

operatorˆ

Computes the bitwise XOR of two chars_format values.

operatorˆ=

Assigns to lhs the bitwise XOR of lhs and rhs.

operator|

Computes the bitwise OR of two chars_format values.

operator|=

Assigns to lhs the bitwise OR of lhs and rhs.

operator~

Computes the bitwise complement of a chars_format value.

Created with MrDocs