Provides a "view" into a container/array.
Simplified from std::span TODO change this to an alias to std::span if we move to C++20
#include <FormItCoreTypes.h>
Public Types | |
| using | TIter = T * |
Public Member Functions | |
| Span ()=default | |
| Constructor. | |
| Span (const Span &r)=default | |
| Span (Span &&r)=default | |
| template<typename Container > | |
| Span (Container &d) | |
| Span (TIter b, TIter e) noexcept | |
| constexpr TIter | begin () noexcept |
| begin() function. | |
| constexpr const TIter | cbegin () const noexcept |
| cbegin() function. | |
| constexpr TIter | end () noexcept |
| end() function. | |
| constexpr const TIter | cend () const noexcept |
| cend() function. | |
| constexpr bool | empty () const noexcept |
| empty() function. | |
| constexpr size_t | size () const noexcept |
| size() function. | |
| constexpr TIter | data () noexcept |
| data() function. | |
| constexpr T & | operator[] (size_t i) noexcept |
| constexpr const T & | operator[] (size_t i) const noexcept |
| using FormIt::Utils::Span< T >::TIter = T* |
|
default |
Constructor.
|
default |
|
default |
|
inline |
|
inlinenoexcept |
|
inlineconstexprnoexcept |
begin() function.
|
inlineconstexprnoexcept |
cbegin() function.
|
inlineconstexprnoexcept |
cend() function.
|
inlineconstexprnoexcept |
data() function.
|
inlineconstexprnoexcept |
empty() function.
|
inlineconstexprnoexcept |
end() function.
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
size() function.