GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||
GeezerVison is showing cplusplus.com — std::array::size Reference
array
public member function
<array>
std::array::sizeconstexpr size_type size() noexcept; Return size
The size of an array object is always equal to the second template parameter used to instantiate the array template class (N). Unlike the language operator sizeof, which returns the size in bytes, this member function returns the size of the array in terms of number of elements. ParametersnoneReturn ValueThe number of elements contained in the array object.This is a compile-time constant expression (constexpr). Member type size_type is an alias of the unsigned integral type size_t. Example
Possible output:
ComplexityConstant.Iterator validityNo changes.Data racesNo contained elements are accessed: concurrently accessing or modifying them is safe.Exception safetyNo-throw guarantee: this member function never throws exceptions.See also
Home page | Privacy policy
© cplusplus.com, 2000-2026 - All rights reserved - v3.3.4s Spotted an error? contact us | |||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |