C++ Logo

STD-DISCUSSION

Advanced search

Subject: Re: Why is size_type in std::array an alias for size_t?
From: Thiago Macieira (thiago_at_[hidden])
Date: 2019-11-09 10:03:21


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

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

Older Archives on Google Groups