A non-owning view over contiguous objects stored in an Array or vector or other similar container. More...
#include <juce_Span.h>
Inherits detail::NumBase< dynamicExtent >.
Public Member Functions | |
template<size_t e = extent, std::enable_if_t< e==0||e==dynamicExtent, int > = 0> | |
constexpr | Span () |
template<typename It > | |
constexpr | Span (It it, size_t end) |
template<typename Range , std::enable_if_t< detail::hasDataAndSize< Range >, int > = 0> | |
constexpr | Span (Range &&range) |
constexpr | Span (const Span &)=default |
constexpr Span & | operator= (const Span &)=default |
constexpr | Span (Span &&) noexcept=default |
constexpr Span & | operator= (Span &&) noexcept=default |
constexpr Value * | begin () const |
constexpr Value * | end () const |
constexpr auto & | front () const |
constexpr auto & | back () const |
constexpr auto & | operator[] (size_t index) const |
constexpr Value * | data () const |
constexpr bool | empty () const |
Static Public Attributes | |
static constexpr auto | extent = Extent |
A non-owning view over contiguous objects stored in an Array or vector or other similar container.
This is a bit like std::span from C++20, but with a more limited interface.
|
constexpr |
|
constexpr |
|
constexpr |
|
constexprdefault |
|
constexprdefaultnoexcept |
|
constexprdefault |
|
constexprdefaultnoexcept |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
staticconstexpr |