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::back Reference
array
public member function
<array>
std::array::backreference back();const_reference back() const; Access last element
Unlike member array::end, which returns an iterator just past this element, this function returns a direct reference. Calling this function on an empty container causes undefined behavior. ParametersnoneReturn valueA reference to the last element in the array.If the array object is const-qualified, the function returns a const_reference. Otherwise, it returns a reference. Member types reference and const_reference are the reference types to the elements of the array (see array member types). Example
Output:
ComplexityConstant.Iterator validityNo changes.Data racesThe reference returned can be used to access or modify elements. Concurrently accessing or modifying different elements is safe.Exception safetyIf the container is not empty, the function never throws exceptions (no-throw guarantee).Otherwise, it causes undefined behavior. 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. |