Lines Matching refs:constexpr

20 inline constexpr ptrdiff_t dynamic_extent = -1;
51 static constexpr index_type extent = Extent;
54 constexpr span() noexcept;
55 constexpr span(pointer ptr, index_type count);
56 constexpr span(pointer firstElem, pointer lastElem);
58 constexpr span(element_type (&arr)[N]) noexcept;
60 constexpr span(array<value_type, N>& arr) noexcept;
62 constexpr span(const array<value_type, N>& arr) noexcept;
64 constexpr span(Container& cont);
66 constexpr span(const Container& cont);
67 constexpr span(const span& other) noexcept = default;
69 constexpr span(const span<OtherElementType, OtherExtent>& s) noexcept;
71 constexpr span& operator=(const span& other) noexcept = default;
75 constexpr span<element_type, Count> first() const;
77 constexpr span<element_type, Count> last() const;
79 constexpr span<element_type, see below> subspan() const;
81 constexpr span<element_type, dynamic_extent> first(index_type count) const;
82 constexpr span<element_type, dynamic_extent> last(index_type count) const;
83constexpr span<element_type, dynamic_extent> subspan(index_type offset, index_type count = dynamic…
86 constexpr index_type size() const noexcept;
87 constexpr index_type size_bytes() const noexcept;
88 constexpr bool empty() const noexcept;
91 constexpr reference operator[](index_type idx) const;
92 constexpr reference operator()(index_type idx) const;
93 constexpr pointer data() const noexcept;
96 constexpr iterator begin() const noexcept;
97 constexpr iterator end() const noexcept;
98 constexpr const_iterator cbegin() const noexcept;
99 constexpr const_iterator cend() const noexcept;
100 constexpr reverse_iterator rbegin() const noexcept;
101 constexpr reverse_iterator rend() const noexcept;
102 constexpr const_reverse_iterator crbegin() const noexcept;
103 constexpr const_reverse_iterator crend() const noexcept;
144 inline constexpr ptrdiff_t dynamic_extent = -1;
207 static constexpr index_type extent = _Extent;
211 _LIBCPP_INLINE_VISIBILITY constexpr span() noexcept : __data{nullptr}
214 constexpr span (const span&) noexcept = default;
215 constexpr span& operator=(const span&) noexcept = default;
217 _LIBCPP_INLINE_VISIBILITY constexpr span(pointer __ptr, index_type __count) : __data{__ptr}
219 _LIBCPP_INLINE_VISIBILITY constexpr span(pointer __f, pointer __l) : __data{__f}
222 …_LIBCPP_INLINE_VISIBILITY constexpr span(element_type (&__arr)[_Extent]) noexcept : __dat…
223 …_LIBCPP_INLINE_VISIBILITY constexpr span( array<value_type, _Extent>& __arr) noexcept : __dat…
224 …_LIBCPP_INLINE_VISIBILITY constexpr span(const array<value_type, _Extent>& __arr) noexcept : __dat…
228 constexpr span( _Container& __c,
235 constexpr span(const _Container& __c,
242 constexpr span(const span<_OtherElementType, _Extent>& __other,
250 constexpr span(const span<_OtherElementType, dynamic_extent>& __other,
261 constexpr span<element_type, _Count> first() const noexcept
270 constexpr span<element_type, _Count> last() const noexcept
278 constexpr span<element_type, dynamic_extent> first(index_type __count) const noexcept
285 constexpr span<element_type, dynamic_extent> last(index_type __count) const noexcept
293 constexpr auto subspan() const noexcept
302 constexpr span<element_type, dynamic_extent>
313 _LIBCPP_INLINE_VISIBILITY constexpr index_type size() const noexcept { return _Extent; }
314 …_LIBCPP_INLINE_VISIBILITY constexpr index_type size_bytes() const noexcept { return _Extent * size…
315 …_LIBCPP_INLINE_VISIBILITY constexpr bool empty() const noexcept { return _Extent == 0; }
317 _LIBCPP_INLINE_VISIBILITY constexpr reference operator[](index_type __idx) const noexcept
323 _LIBCPP_INLINE_VISIBILITY constexpr reference operator()(index_type __idx) const noexcept
329 …_LIBCPP_INLINE_VISIBILITY constexpr pointer data() const noexcept { return…
332 …_LIBCPP_INLINE_VISIBILITY constexpr iterator begin() const noexcept { return itera…
333 …_LIBCPP_INLINE_VISIBILITY constexpr iterator end() const noexcept { return itera…
334 …_LIBCPP_INLINE_VISIBILITY constexpr const_iterator cbegin() const noexcept { return const…
335 …_LIBCPP_INLINE_VISIBILITY constexpr const_iterator cend() const noexcept { return const…
336 …_LIBCPP_INLINE_VISIBILITY constexpr reverse_iterator rbegin() const noexcept { return rever…
337 …_LIBCPP_INLINE_VISIBILITY constexpr reverse_iterator rend() const noexcept { return rever…
338 …_LIBCPP_INLINE_VISIBILITY constexpr const_reverse_iterator crbegin() const noexcept { return const…
339 …_LIBCPP_INLINE_VISIBILITY constexpr const_reverse_iterator crend() const noexcept { return const…
341 _LIBCPP_INLINE_VISIBILITY constexpr void swap(span &__other) noexcept
379 static constexpr index_type extent = dynamic_extent;
382 _LIBCPP_INLINE_VISIBILITY constexpr span() noexcept : __data{nullptr}, __size{0} {}
384 constexpr span (const span&) noexcept = default;
385 constexpr span& operator=(const span&) noexcept = default;
387 …_LIBCPP_INLINE_VISIBILITY constexpr span(pointer __ptr, index_type __count) : __data{__ptr}, __siz…
388 …_LIBCPP_INLINE_VISIBILITY constexpr span(pointer __f, pointer __l) : __data{__f}, __size{distance(…
392 constexpr span(element_type (&__arr)[_Sz]) noexcept : __data{__arr}, __size{_Sz} {}
396constexpr span(array<value_type, _Sz>& __arr) noexcept : __data{__arr.data()}, __size{_Sz} {}
400constexpr span(const array<value_type, _Sz>& __arr) noexcept : __data{__arr.data()}, __size{_Sz} {}
404 constexpr span( _Container& __c,
410 constexpr span(const _Container& __c,
417 constexpr span(const span<_OtherElementType, _OtherExtent>& __other,
427 constexpr span<element_type, _Count> first() const noexcept
436 constexpr span<element_type, _Count> last() const noexcept
444 constexpr span<element_type, dynamic_extent> first(index_type __count) const noexcept
451 constexpr span<element_type, dynamic_extent> last (index_type __count) const noexcept
459 constexpr span<_Tp, dynamic_extent> subspan() const noexcept
466 constexpr span<element_type, dynamic_extent>
478 _LIBCPP_INLINE_VISIBILITY constexpr index_type size() const noexcept { return __size; }
479 …_LIBCPP_INLINE_VISIBILITY constexpr index_type size_bytes() const noexcept { return __size * sizeo…
480 … _LIBCPP_INLINE_VISIBILITY constexpr bool empty() const noexcept { return __size == 0; }
482 _LIBCPP_INLINE_VISIBILITY constexpr reference operator[](index_type __idx) const noexcept
488 _LIBCPP_INLINE_VISIBILITY constexpr reference operator()(index_type __idx) const noexcept
494 …_LIBCPP_INLINE_VISIBILITY constexpr pointer data() const noexcept { return…
497 …_LIBCPP_INLINE_VISIBILITY constexpr iterator begin() const noexcept { return itera…
498 …_LIBCPP_INLINE_VISIBILITY constexpr iterator end() const noexcept { return itera…
499 …_LIBCPP_INLINE_VISIBILITY constexpr const_iterator cbegin() const noexcept { return const…
500 …_LIBCPP_INLINE_VISIBILITY constexpr const_iterator cend() const noexcept { return const…
501 …_LIBCPP_INLINE_VISIBILITY constexpr reverse_iterator rbegin() const noexcept { return rever…
502 …_LIBCPP_INLINE_VISIBILITY constexpr reverse_iterator rend() const noexcept { return rever…
503 …_LIBCPP_INLINE_VISIBILITY constexpr const_reverse_iterator crbegin() const noexcept { return const…
504 …_LIBCPP_INLINE_VISIBILITY constexpr const_reverse_iterator crend() const noexcept { return const…
506 _LIBCPP_INLINE_VISIBILITY constexpr void swap(span &__other) noexcept
540 constexpr void swap(span<_Tp, _Extent> &__lhs, span<_Tp, _Extent> &__rhs) noexcept