Implementation of std::span from C++20.
More...
#include <span.hpp>
|
constexpr | Span (pointer ptr) |
|
constexpr pointer | begin () const noexcept |
|
constexpr pointer | end () const noexcept |
|
constexpr element_type | front () const noexcept |
|
constexpr element_type | back () const noexcept |
|
constexpr reference | operator[] (size_t idx) noexcept |
|
constexpr const_reference | operator[] (size_t idx) const noexcept |
|
constexpr pointer | data () const noexcept |
|
constexpr size_t | size () const noexcept |
|
constexpr bool | empty () const noexcept |
|
constexpr Span< T, DYNAMIC_EXTENT > | subspan (size_t index, size_t length) const |
|
constexpr Span< T, DYNAMIC_EXTENT > | subspan (size_t index) const |
|
template<size_t Offset, size_t Count = DYNAMIC_EXTENT> |
constexpr Span< T, Count==DYNAMIC_EXTENT ? DYNAMIC_EXTENT :Extent-Count > | subspan () const |
|
constexpr Span< T, DYNAMIC_EXTENT > | first (size_t count) const |
|
template<size_t Count> |
constexpr Span< T, Count > | first () const |
|
constexpr Span< T, DYNAMIC_EXTENT > | last (size_t count) const |
|
template<size_t Count> |
constexpr Span< T, Count > | last () const |
|
|
static constexpr size_t | extent = Extent |
|
template<class T, size_t Extent = DYNAMIC_EXTENT>
struct microstrain::Span< T, Extent >
Implementation of std::span from C++20.
This class represents a pointer and length. It provides the minimum functionality required by this SDK while trying to be interchangeable with std::span.
https://en.cppreference.com/w/cpp/container/span
See C++ Standard Support
◆ const_pointer
template<class T , size_t Extent = DYNAMIC_EXTENT>
◆ const_reference
template<class T , size_t Extent = DYNAMIC_EXTENT>
◆ difference_type
template<class T , size_t Extent = DYNAMIC_EXTENT>
◆ element_type
template<class T , size_t Extent = DYNAMIC_EXTENT>
◆ pointer
template<class T , size_t Extent = DYNAMIC_EXTENT>
◆ reference
template<class T , size_t Extent = DYNAMIC_EXTENT>
◆ value_type
template<class T , size_t Extent = DYNAMIC_EXTENT>
◆ Span()
template<class T , size_t Extent = DYNAMIC_EXTENT>
◆ back()
template<class T , size_t Extent = DYNAMIC_EXTENT>
◆ begin()
template<class T , size_t Extent = DYNAMIC_EXTENT>
◆ data()
template<class T , size_t Extent = DYNAMIC_EXTENT>
◆ empty()
template<class T , size_t Extent = DYNAMIC_EXTENT>
◆ end()
template<class T , size_t Extent = DYNAMIC_EXTENT>
◆ first() [1/2]
template<class T , size_t Extent = DYNAMIC_EXTENT>
template<size_t Count>
◆ first() [2/2]
template<class T , size_t Extent = DYNAMIC_EXTENT>
◆ front()
template<class T , size_t Extent = DYNAMIC_EXTENT>
◆ last() [1/2]
template<class T , size_t Extent = DYNAMIC_EXTENT>
template<size_t Count>
◆ last() [2/2]
template<class T , size_t Extent = DYNAMIC_EXTENT>
◆ operator[]() [1/2]
template<class T , size_t Extent = DYNAMIC_EXTENT>
◆ operator[]() [2/2]
template<class T , size_t Extent = DYNAMIC_EXTENT>
◆ size()
template<class T , size_t Extent = DYNAMIC_EXTENT>
◆ subspan() [1/3]
template<class T , size_t Extent = DYNAMIC_EXTENT>
template<size_t Offset, size_t Count = DYNAMIC_EXTENT>
constexpr Span<T, Count == DYNAMIC_EXTENT ? DYNAMIC_EXTENT : Extent-Count> microstrain::Span< T, Extent >::subspan |
( |
| ) |
const |
|
inlineconstexpr |
◆ subspan() [2/3]
template<class T , size_t Extent = DYNAMIC_EXTENT>
◆ subspan() [3/3]
template<class T , size_t Extent = DYNAMIC_EXTENT>
constexpr Span<T, DYNAMIC_EXTENT> microstrain::Span< T, Extent >::subspan |
( |
size_t |
index, |
|
|
size_t |
length |
|
) |
| const |
|
inlineconstexpr |
◆ extent
template<class T , size_t Extent = DYNAMIC_EXTENT>
The documentation for this struct was generated from the following file: