Audacity 3.2.0
Public Member Functions | List of all members
PackedArray::Ptr< Type, BaseDeleter > Struct Template Reference

Smart pointer type that deallocates with Deleter. More...

#include <PackedArray.h>

Inheritance diagram for PackedArray::Ptr< Type, BaseDeleter >:
[legend]
Collaboration diagram for PackedArray::Ptr< Type, BaseDeleter >:
[legend]

Public Member Functions

auto & operator[] (size_t ii) const
 Enables subscripting. Does not check for null! More...
 

Detailed Description

template<typename Type, template< typename > typename BaseDeleter = std::default_delete>
struct PackedArray::Ptr< Type, BaseDeleter >

Smart pointer type that deallocates with Deleter.

Definition at line 128 of file PackedArray.h.

Member Function Documentation

◆ operator[]()

template<typename Type , template< typename > typename BaseDeleter = std::default_delete>
auto & PackedArray::Ptr< Type, BaseDeleter >::operator[] ( size_t  ii) const
inline

Enables subscripting. Does not check for null!

Definition at line 135 of file PackedArray.h.

136 {
137 return *(begin(*this) + ii);
138 }
auto begin(const Ptr< Type, BaseDeleter > &p)
Enables range-for.
Definition: PackedArray.h:150

References PackedArray::begin().

Here is the call graph for this function:

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