Implementation of std::span from C++20.
More...
#include <span.hpp>
|
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>
◆ front()
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: