JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
juce::Span< Value, Extent > Class Template Reference

A non-owning view over contiguous objects stored in an Array or vector or other similar container. More...

#include "juce_Span.h"

Inheritance diagram for juce::Span< Value, Extent >:
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 autofront () const
 
constexpr autoback () const
 
constexpr autooperator[] (size_t index) const
 
constexpr Valuedata () const
 
constexpr bool empty () const
 
constexpr size_t size () const
 

Static Public Attributes

static constexpr auto 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.

@tags{Core}

Definition at line 95 of file juce_Span.h.

Constructor & Destructor Documentation

◆ Span() [1/3]

template<typename Value , size_t Extent = dynamicExtent>
template<size_t e = extent, std::enable_if_t< e==0||e==dynamicExtent, int > = 0>
constexpr juce::Span< Value, Extent >::Span ( )
constexpr

Definition at line 103 of file juce_Span.h.

◆ Span() [2/3]

template<typename Value , size_t Extent = dynamicExtent>
template<typename It >
constexpr juce::Span< Value, Extent >::Span ( It  it,
size_t  end 
)
constexpr

Definition at line 106 of file juce_Span.h.

◆ Span() [3/3]

template<typename Value , size_t Extent = dynamicExtent>
template<typename Range , std::enable_if_t< detail::hasDataAndSize< Range >, int > = 0>
constexpr juce::Span< Value, Extent >::Span ( Range &&  range)
constexpr

Definition at line 110 of file juce_Span.h.

Member Function Documentation

◆ back()

template<typename Value , size_t Extent = dynamicExtent>
constexpr auto & juce::Span< Value, Extent >::back ( ) const
constexpr

Definition at line 127 of file juce_Span.h.

◆ begin()

template<typename Value , size_t Extent = dynamicExtent>
constexpr Value * juce::Span< Value, Extent >::begin ( ) const
constexpr

Definition at line 123 of file juce_Span.h.

◆ data()

template<typename Value , size_t Extent = dynamicExtent>
constexpr Value * juce::Span< Value, Extent >::data ( ) const
constexpr

Definition at line 130 of file juce_Span.h.

◆ empty()

template<typename Value , size_t Extent = dynamicExtent>
constexpr bool juce::Span< Value, Extent >::empty ( ) const
constexpr

Definition at line 132 of file juce_Span.h.

◆ end()

template<typename Value , size_t Extent = dynamicExtent>
constexpr Value * juce::Span< Value, Extent >::end ( ) const
constexpr

Definition at line 124 of file juce_Span.h.

◆ front()

template<typename Value , size_t Extent = dynamicExtent>
constexpr auto & juce::Span< Value, Extent >::front ( ) const
constexpr

Definition at line 126 of file juce_Span.h.

◆ operator[]()

template<typename Value , size_t Extent = dynamicExtent>
constexpr auto & juce::Span< Value, Extent >::operator[] ( size_t  index) const
constexpr

Definition at line 129 of file juce_Span.h.

◆ size()

template<typename Value , size_t Extent = dynamicExtent>
constexpr size_t juce::detail::NumBase< Extent >::size ( ) const
constexpr

Definition at line 53 of file juce_Span.h.

Member Data Documentation

◆ extent

template<typename Value , size_t Extent = dynamicExtent>
constexpr auto juce::Span< Value, Extent >::extent
staticconstexpr

Definition at line 100 of file juce_Span.h.


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