default_code_unit_encoding
Picks the default encoding for the given code unit type (for both run time, and compile time with the appropriately selected version of this property). The default association table is below. Errors if there is no default association.
Note
User Specializations: ✔️ Okay! You can add other types to this classification by specializing the class template. Your specialization must have a type definition named type
(as in, using type = ...;
or typedef … type;`) inside of the class specialization that is public:
ly accessible. Note that specializing any type not explicitly marked with this notice is ☢️☢️Undefined Behavior☢️☢️.
Type |
Encoding |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-
template<typename _Type>
class default_code_unit_encoding : public __default_code_unit_encoding<_Type, false> The default encoding associated with a given code unit type, that serves as either input to a decode operation or output from an encode operation.
- Template Parameters
_Type – The code unit type, with no cv-qualifiers
-
using ztd::text::default_code_unit_encoding_t = typename default_code_unit_encoding<_Type>::type
A
typename
alias for ztd::text::default_code_unit_encoding.- Template Parameters
_Type – The code unit type, with no cv-qualifiers
-
template<typename _Type>
class default_consteval_code_unit_encoding : public __default_code_unit_encoding<_Type, true> The default encoding associated with a given code unit type, that serves as either input to a decode operation or output from an encode operation. This uses the additional information that this is compiletime, not runtime, to help make the decision on what to do.
- Template Parameters
_Type – The code unit type, with no cv-qualifiers
-
using ztd::text::default_consteval_code_unit_encoding_t = typename default_consteval_code_unit_encoding<_Type>::type
A
typename
alias for ztd::text::default_consteval_code_unit_encoding.- Template Parameters
_Type – The code unit type, with no cv-qualifiers