OpenShot Audio Library | OpenShotAudio  0.6.0
juce::Span< Value, Extent > Class Template Reference

#include <juce_Span.h>

Inherits juce::detail::NumBase< Extent >.

Public Member Functions

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 Spanoperator= (const Span &)=default
 
constexpr Span (Span &&) noexcept=default
 
constexpr Spanoperator= (Span &&) noexcept=default
 
constexpr Valuebegin () const
 
constexpr Valueend () const
 
constexpr auto & front () const
 
constexpr auto & back () const
 
constexpr auto & operator[] (size_t index) const
 
constexpr Valuedata () const
 
constexpr bool empty () const
 

Static Public Attributes

static constexpr auto extent = Extent
 

Detailed Description

template<typename Value, size_t Extent = dynamicExtent>
class juce::Span< Value, 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.

Definition at line 95 of file juce_Span.h.


The documentation for this class was generated from the following file: