array (227825) | array (241900) |
---|---|
1// -*- C++ -*- 2//===---------------------------- array -----------------------------------===// 3// 4// The LLVM Compiler Infrastructure 5// 6// This file is dual licensed under the MIT and the University of Illinois Open 7// Source Licenses. See LICENSE.TXT for details. 8// --- 41 unchanged lines hidden (view full) --- 50 const_iterator cbegin() const noexcept; 51 const_iterator cend() const noexcept; 52 const_reverse_iterator crbegin() const noexcept; 53 const_reverse_iterator crend() const noexcept; 54 55 // capacity: 56 constexpr size_type size() const noexcept; 57 constexpr size_type max_size() const noexcept; | 1// -*- C++ -*- 2//===---------------------------- array -----------------------------------===// 3// 4// The LLVM Compiler Infrastructure 5// 6// This file is dual licensed under the MIT and the University of Illinois Open 7// Source Licenses. See LICENSE.TXT for details. 8// --- 41 unchanged lines hidden (view full) --- 50 const_iterator cbegin() const noexcept; 51 const_iterator cend() const noexcept; 52 const_reverse_iterator crbegin() const noexcept; 53 const_reverse_iterator crend() const noexcept; 54 55 // capacity: 56 constexpr size_type size() const noexcept; 57 constexpr size_type max_size() const noexcept; |
58 bool empty() const noexcept; | 58 constexpr bool empty() const noexcept; |
59 60 // element access: 61 reference operator[](size_type n); 62 const_reference operator[](size_type n) const; 63 const_reference at(size_type n) const; 64 reference at(size_type n); 65 66 reference front(); --- 101 unchanged lines hidden (view full) --- 168 const_iterator cend() const _NOEXCEPT {return end();} 169 _LIBCPP_INLINE_VISIBILITY 170 const_reverse_iterator crbegin() const _NOEXCEPT {return rbegin();} 171 _LIBCPP_INLINE_VISIBILITY 172 const_reverse_iterator crend() const _NOEXCEPT {return rend();} 173 174 // capacity: 175 _LIBCPP_INLINE_VISIBILITY | 59 60 // element access: 61 reference operator[](size_type n); 62 const_reference operator[](size_type n) const; 63 const_reference at(size_type n) const; 64 reference at(size_type n); 65 66 reference front(); --- 101 unchanged lines hidden (view full) --- 168 const_iterator cend() const _NOEXCEPT {return end();} 169 _LIBCPP_INLINE_VISIBILITY 170 const_reverse_iterator crbegin() const _NOEXCEPT {return rbegin();} 171 _LIBCPP_INLINE_VISIBILITY 172 const_reverse_iterator crend() const _NOEXCEPT {return rend();} 173 174 // capacity: 175 _LIBCPP_INLINE_VISIBILITY |
176 /*constexpr*/ size_type size() const _NOEXCEPT {return _Size;} | 176 _LIBCPP_CONSTEXPR size_type size() const _NOEXCEPT {return _Size;} |
177 _LIBCPP_INLINE_VISIBILITY | 177 _LIBCPP_INLINE_VISIBILITY |
178 /*constexpr*/ size_type max_size() const _NOEXCEPT {return _Size;} | 178 _LIBCPP_CONSTEXPR size_type max_size() const _NOEXCEPT {return _Size;} |
179 _LIBCPP_INLINE_VISIBILITY | 179 _LIBCPP_INLINE_VISIBILITY |
180 bool empty() const _NOEXCEPT {return _Size == 0;} | 180 _LIBCPP_CONSTEXPR bool empty() const _NOEXCEPT {return _Size == 0;} |
181 182 // element access: 183 _LIBCPP_INLINE_VISIBILITY reference operator[](size_type __n) {return __elems_[__n];} 184 _LIBCPP_INLINE_VISIBILITY const_reference operator[](size_type __n) const {return __elems_[__n];} 185 reference at(size_type __n); 186 const_reference at(size_type __n) const; 187 188 _LIBCPP_INLINE_VISIBILITY reference front() {return __elems_[0];} --- 150 unchanged lines hidden --- | 181 182 // element access: 183 _LIBCPP_INLINE_VISIBILITY reference operator[](size_type __n) {return __elems_[__n];} 184 _LIBCPP_INLINE_VISIBILITY const_reference operator[](size_type __n) const {return __elems_[__n];} 185 reference at(size_type __n); 186 const_reference at(size_type __n) const; 187 188 _LIBCPP_INLINE_VISIBILITY reference front() {return __elems_[0];} --- 150 unchanged lines hidden --- |