C++ Logo

std-discussion

Advanced search

Re: Why is size_type in std::array an alias for size_t?

From: Thiago Macieira <thiago_at_[hidden]>
Date: Sat, 09 Nov 2019 08:03:21 -0800
On Saturday, 9 November 2019 02:30:00 PST Lyberta via Std-Discussion wrote:
> > I size_t is unsigned long long int, what then will be difference_type?
>
> std::size_t is tied to std::ptrdiff_t. So if std::size_t is unsigned
> long long int then std::ptrdiff_t is long long int.

Not normatively, but in practice that is correct.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel System Software Products

Received on 2019-11-09 10:05:41