|
LibreOffice Module o3tl (master) 1
|
A barebones approximation of C++20 . More...
#include <span.hxx>
Public Types | |
| using | value_type = T |
| using | pointer = value_type * |
| using | const_pointer = value_type const * |
| using | reference = value_type & |
| using | const_reference = value_type const & |
| using | const_iterator = const_pointer |
| using | iterator = pointer |
| using | const_reverse_iterator = std::reverse_iterator< const_iterator > |
| using | reverse_iterator = std::reverse_iterator< iterator > |
| using | size_type = std::size_t |
| using | difference_type = std::ptrdiff_t |
Public Member Functions | |
| constexpr | span () noexcept |
| template<std::size_t N> | |
| constexpr | span (T(&a)[N]) noexcept |
| constexpr | span (T *a, size_type len) noexcept |
| template<typename T2 > | |
| constexpr | span (const std::vector< T2 > &vec) |
| constexpr | span (const span< typename std::remove_const< T >::type > &other) noexcept |
| for assigning from span<T> to span<const T> More... | |
| constexpr bool | empty () const noexcept |
| constexpr iterator | begin () const noexcept |
| constexpr iterator | end () const noexcept |
| reverse_iterator | rbegin () const noexcept |
| reverse_iterator | rend () const noexcept |
| constexpr size_type | size () const noexcept |
| constexpr reference | operator[] (size_type pos) const |
| constexpr pointer | data () const noexcept |
Private Attributes | |
| pointer | data_ |
| size_type | size_ |
A barebones approximation of C++20 .
| using o3tl::span< T >::const_iterator = const_pointer |
| using o3tl::span< T >::const_pointer = value_type const * |
| using o3tl::span< T >::const_reference = value_type const & |
| using o3tl::span< T >::const_reverse_iterator = std::reverse_iterator<const_iterator> |
| using o3tl::span< T >::difference_type = std::ptrdiff_t |
| using o3tl::span< T >::iterator = pointer |
| using o3tl::span< T >::pointer = value_type * |
| using o3tl::span< T >::reference = value_type & |
| using o3tl::span< T >::reverse_iterator = std::reverse_iterator<iterator> |
| using o3tl::span< T >::size_type = std::size_t |
| using o3tl::span< T >::value_type = T |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexpr |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
Definition at line 72 of file span.hxx.
References o3tl::span< T >::data_.
Referenced by o3tl::span< T >::end(), and o3tl::span< T >::rend().
|
inlineconstexprnoexcept |
Definition at line 87 of file span.hxx.
References o3tl::span< T >::data_.
|
inlineconstexprnoexcept |
Definition at line 70 of file span.hxx.
References o3tl::span< T >::size_.
|
inlineconstexprnoexcept |
Definition at line 73 of file span.hxx.
References o3tl::span< T >::begin(), and o3tl::span< T >::size().
Referenced by o3tl::span< T >::rbegin().
|
inlineconstexpr |
Definition at line 82 of file span.hxx.
References o3tl::span< T >::data_, pos, and o3tl::span< T >::size().
|
inlinenoexcept |
Definition at line 75 of file span.hxx.
References o3tl::span< T >::end().
|
inlinenoexcept |
Definition at line 77 of file span.hxx.
References o3tl::span< T >::begin().
|
inlineconstexprnoexcept |
Definition at line 80 of file span.hxx.
References o3tl::span< T >::size_.
Referenced by o3tl::span< T >::end(), and o3tl::span< T >::operator[]().
|
private |
Definition at line 90 of file span.hxx.
Referenced by o3tl::span< T >::begin(), o3tl::span< T >::data(), and o3tl::span< T >::operator[]().
|
private |
Definition at line 91 of file span.hxx.
Referenced by o3tl::span< T >::empty(), and o3tl::span< T >::size().