tesseract++ 0.0.1
N-dimensional tensor library for embedded systems
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
Array< T, 0 > Struct Template Reference

Empty array specialization. More...

#include <array.h>

Public Member Functions

FORCE_INLINE constexpr T * begin () noexcept
 
FORCE_INLINE constexpr const T * begin () const noexcept
 
FORCE_INLINE constexpr T * end () noexcept
 
FORCE_INLINE constexpr const T * end () const noexcept
 
constexpr void fill (const T &) noexcept
 
constexpr void swap (Array &) noexcept
 

Static Public Member Functions

static FORCE_INLINE constexpr my_size_t size () noexcept
 
static FORCE_INLINE constexpr bool empty () noexcept
 

Detailed Description

template<typename T>
struct Array< T, 0 >

Empty array specialization.

Useful for generic code that may produce zero-sized arrays. Most accessors are omitted since no elements exist.

Member Function Documentation

◆ begin() [1/2]

template<typename T >
FORCE_INLINE constexpr const T * Array< T, 0 >::begin ( ) const
inlineconstexprnoexcept

◆ begin() [2/2]

template<typename T >
FORCE_INLINE constexpr T * Array< T, 0 >::begin ( )
inlineconstexprnoexcept

◆ empty()

template<typename T >
static FORCE_INLINE constexpr bool Array< T, 0 >::empty ( )
inlinestaticconstexprnoexcept

◆ end() [1/2]

template<typename T >
FORCE_INLINE constexpr const T * Array< T, 0 >::end ( ) const
inlineconstexprnoexcept

◆ end() [2/2]

template<typename T >
FORCE_INLINE constexpr T * Array< T, 0 >::end ( )
inlineconstexprnoexcept

◆ fill()

template<typename T >
constexpr void Array< T, 0 >::fill ( const T &  )
inlineconstexprnoexcept

◆ size()

template<typename T >
static FORCE_INLINE constexpr my_size_t Array< T, 0 >::size ( )
inlinestaticconstexprnoexcept

◆ swap()

template<typename T >
constexpr void Array< T, 0 >::swap ( Array< T, 0 > &  )
inlineconstexprnoexcept

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