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::data Reference
array
public member function
<array>
std::array::datavalue_type* data() noexcept;const value_type* data() const noexcept; Get pointer to data
Because elements in the array are stored in contiguous storage locations, the pointer retrieved can be offset to access any element in the array. ParametersnoneReturn ValuePointer to the data contained by the array object.If the array object is const-qualified, the function returns a pointer to const value_type. Otherwise, it returns a pointer to value_type.Member type value_type is the type of the elements in the container, defined in array as an alias of its first template parameter (T). Example
Output:
ComplexityConstant.Iterator validityNo changes.Data racesNo contained elements are directly accessed by the call, but the pointer returned can be used to access or modify elements. Concurrently accessing or modifying different elements 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. |