Lines Matching refs:constexpr
19 inline constexpr size_t dynamic_extent = numeric_limits<size_t>::max();
26 inline constexpr bool ranges::enable_view<span<ElementType, Extent>> = true;
29 inline constexpr bool ranges::enable_borrowed_range<span<ElementType, Extent>> = true;
55 static constexpr size_type extent = Extent;
58 constexpr span() noexcept;
59 constexpr explicit(Extent != dynamic_extent) span(pointer ptr, size_type count);
60 constexpr explicit(Extent != dynamic_extent) span(pointer firstElem, pointer lastElem);
62 constexpr span(element_type (&arr)[N]) noexcept;
64 constexpr span(array<value_type, N>& arr) noexcept;
66 constexpr span(const array<value_type, N>& arr) noexcept;
68 constexpr explicit(Extent != dynamic_extent) span(Container& cont);
70 constexpr explicit(Extent != dynamic_extent) span(const Container& cont);
71 constexpr span(const span& other) noexcept = default;
73 …constexpr explicit(Extent != dynamic_extent) span(const span<OtherElementType, OtherExtent>& s) no…
75 constexpr span& operator=(const span& other) noexcept = default;
79 constexpr span<element_type, Count> first() const;
81 constexpr span<element_type, Count> last() const;
83 constexpr span<element_type, see below> subspan() const;
85 constexpr span<element_type, dynamic_extent> first(size_type count) const;
86 constexpr span<element_type, dynamic_extent> last(size_type count) const;
87 …constexpr span<element_type, dynamic_extent> subspan(size_type offset, size_type count = dynamic_e…
90 constexpr size_type size() const noexcept;
91 constexpr size_type size_bytes() const noexcept;
92 constexpr bool empty() const noexcept;
95 constexpr reference operator[](size_type idx) const;
96 constexpr reference front() const;
97 constexpr reference back() const;
98 constexpr pointer data() const noexcept;
101 constexpr iterator begin() const noexcept;
102 constexpr iterator end() const noexcept;
103 constexpr reverse_iterator rbegin() const noexcept;
104 constexpr reverse_iterator rend() const noexcept;
153 inline constexpr size_t dynamic_extent = numeric_limits<size_t>::max();
218 static constexpr size_type extent = _Extent;
222 _LIBCPP_INLINE_VISIBILITY constexpr span() noexcept : __data{nullptr} {}
224 constexpr span (const span&) noexcept = default;
225 constexpr span& operator=(const span&) noexcept = default;
227 …_LIBCPP_INLINE_VISIBILITY constexpr explicit span(pointer __ptr, size_type __count) : __data{__ptr}
229 _LIBCPP_INLINE_VISIBILITY constexpr explicit span(pointer __f, pointer __l) : __data{__f}
232 …_LIBCPP_INLINE_VISIBILITY constexpr span(element_type (&__arr)[_Extent]) noexcept : __dat…
237 constexpr span(array<_OtherElementType, _Extent>& __arr) noexcept : __data{__arr.data()} {}
242 … constexpr span(const array<_OtherElementType, _Extent>& __arr) noexcept : __data{__arr.data()} {}
246 constexpr explicit span( _Container& __c,
254 constexpr explicit span(const _Container& __c,
262 constexpr span(const span<_OtherElementType, _Extent>& __other,
270 constexpr explicit span(const span<_OtherElementType, dynamic_extent>& __other,
281 constexpr span<element_type, _Count> first() const noexcept
289 constexpr span<element_type, _Count> last() const noexcept
296 constexpr span<element_type, dynamic_extent> first(size_type __count) const noexcept
303 constexpr span<element_type, dynamic_extent> last(size_type __count) const noexcept
311 constexpr auto subspan() const noexcept
323 constexpr span<element_type, dynamic_extent>
334 _LIBCPP_INLINE_VISIBILITY constexpr size_type size() const noexcept { return _Extent; }
335 …_LIBCPP_INLINE_VISIBILITY constexpr size_type size_bytes() const noexcept { return _Extent * sizeo…
336 … _LIBCPP_INLINE_VISIBILITY constexpr bool empty() const noexcept { return _Extent == 0; }
338 _LIBCPP_INLINE_VISIBILITY constexpr reference operator[](size_type __idx) const noexcept
344 _LIBCPP_INLINE_VISIBILITY constexpr reference front() const noexcept
350 _LIBCPP_INLINE_VISIBILITY constexpr reference back() const noexcept
356 …_LIBCPP_INLINE_VISIBILITY constexpr pointer data() const noexcept { return…
359 …_LIBCPP_INLINE_VISIBILITY constexpr iterator begin() const noexcept { return itera…
360 …_LIBCPP_INLINE_VISIBILITY constexpr iterator end() const noexcept { return itera…
361 …_LIBCPP_INLINE_VISIBILITY constexpr reverse_iterator rbegin() const noexcept { return rever…
362 …_LIBCPP_INLINE_VISIBILITY constexpr reverse_iterator rend() const noexcept { return rever…
397 static constexpr size_type extent = dynamic_extent;
400 _LIBCPP_INLINE_VISIBILITY constexpr span() noexcept : __data{nullptr}, __size{0} {}
402 constexpr span (const span&) noexcept = default;
403 constexpr span& operator=(const span&) noexcept = default;
405 …_LIBCPP_INLINE_VISIBILITY constexpr span(pointer __ptr, size_type __count) : __data{__ptr}, __size…
406 …_LIBCPP_INLINE_VISIBILITY constexpr span(pointer __f, pointer __l) : __data{__f}, __size{static_ca…
410 constexpr span(element_type (&__arr)[_Sz]) noexcept : __data{__arr}, __size{_Sz} {}
415 …constexpr span(array<_OtherElementType, _Sz>& __arr) noexcept : __data{__arr.data()}, __size{_Sz} …
420 …constexpr span(const array<_OtherElementType, _Sz>& __arr) noexcept : __data{__arr.data()}, __size…
424 constexpr span( _Container& __c,
430 constexpr span(const _Container& __c,
437 constexpr span(const span<_OtherElementType, _OtherExtent>& __other,
447 constexpr span<element_type, _Count> first() const noexcept
455 constexpr span<element_type, _Count> last() const noexcept
462 constexpr span<element_type, dynamic_extent> first(size_type __count) const noexcept
469 constexpr span<element_type, dynamic_extent> last (size_type __count) const noexcept
477 constexpr span<element_type, _Count> subspan() const noexcept
484 constexpr span<element_type, dynamic_extent>
496 _LIBCPP_INLINE_VISIBILITY constexpr size_type size() const noexcept { return __size; }
497 …_LIBCPP_INLINE_VISIBILITY constexpr size_type size_bytes() const noexcept { return __size * sizeof…
498 … _LIBCPP_INLINE_VISIBILITY constexpr bool empty() const noexcept { return __size == 0; }
500 _LIBCPP_INLINE_VISIBILITY constexpr reference operator[](size_type __idx) const noexcept
506 _LIBCPP_INLINE_VISIBILITY constexpr reference front() const noexcept
512 _LIBCPP_INLINE_VISIBILITY constexpr reference back() const noexcept
519 …_LIBCPP_INLINE_VISIBILITY constexpr pointer data() const noexcept { return…
522 …_LIBCPP_INLINE_VISIBILITY constexpr iterator begin() const noexcept { return itera…
523 …_LIBCPP_INLINE_VISIBILITY constexpr iterator end() const noexcept { return itera…
524 …_LIBCPP_INLINE_VISIBILITY constexpr reverse_iterator rbegin() const noexcept { return rever…
525 …_LIBCPP_INLINE_VISIBILITY constexpr reverse_iterator rend() const noexcept { return rever…
540 inline constexpr bool ranges::enable_borrowed_range<span<_Tp, _Extent> > = true;
543 inline constexpr bool ranges::enable_view<span<_ElementType, _Extent>> = true;