C++ Logo

STD-DISCUSSION

Advanced search

Subject: Re: Why is size_type in std::array an alias for size_t?
From: Lyberta (lyberta_at_[hidden])
Date: 2019-11-09 17:07:00


Bo Persson via Std-Discussion:
> On 2019-11-09 at 12:41, Wilhelm Meier via Std-Discussion wrote:
> But if CHAR_BIT is 10, you probably don't have any char8_t or char16_t
> types. So in a way it *does* matter.

char8_t and char16_t will still exist because char8_t has the same
representation as unsigned char and char16_t has the same representation
as std::uint_least16_t. All those types are mandatory.

std::[u]int[8,16,32,64]_t won't exist though as they are optional and
fixed size.




STD-DISCUSSION list run by std-discussion-owner@lists.isocpp.org

Older Archives on Google Groups