Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
fast_float::span< T > Struct Template Reference

#include <fast_float.h>

Inheritance diagram for fast_float::span< T >:
[legend]

Public Member Functions

 span (const T *_ptr, size_t _length)
 
 span ()
 
constexpr size_t len () const noexcept
 
const T & operator[] (size_t index) const noexcept
 

Public Attributes

const T * ptr
 
size_t length
 

Detailed Description

template<typename T>
struct fast_float::span< T >

Definition at line 208 of file fast_float.h.

Constructor & Destructor Documentation

◆ span() [1/2]

template<typename T >
fast_float::span< T >::span ( const T *  _ptr,
size_t  _length 
)
inline

Definition at line 211 of file fast_float.h.

211: ptr(_ptr), length(_length) {}
const T * ptr
Definition: fast_float.h:209

◆ span() [2/2]

template<typename T >
fast_float::span< T >::span ( )
inline

Definition at line 212 of file fast_float.h.

212: ptr(nullptr), length(0) {}

Member Function Documentation

◆ len()

template<typename T >
constexpr size_t fast_float::span< T >::len ( ) const
inlineconstexprnoexcept

Definition at line 214 of file fast_float.h.

214 {
215 return length;
216 }

References fast_float::span< T >::length.

Referenced by fast_float::parse_number_string().

Here is the caller graph for this function:

◆ operator[]()

template<typename T >
const T & fast_float::span< T >::operator[] ( size_t  index) const
inlinenoexcept

Definition at line 218 of file fast_float.h.

218 {
220 return ptr[index];
221 }
#define FASTFLOAT_DEBUG_ASSERT(x)
Definition: fast_float.h:184

References FASTFLOAT_DEBUG_ASSERT, fast_float::span< T >::length, and fast_float::span< T >::ptr.

Member Data Documentation

◆ length

template<typename T >
size_t fast_float::span< T >::length

Definition at line 210 of file fast_float.h.

Referenced by fast_float::span< T >::len(), and fast_float::span< T >::operator[]().

◆ ptr

template<typename T >
const T* fast_float::span< T >::ptr

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