Speeduino
Loading...
Searching...
No Matches
Classes | Functions
array.h File Reference

Minimal polyfill for the standard library array, since it isn't available with avr-gcc. More...

#include <stdint.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  array< T, N >
 

Functions

template<typename T >
static constexpr void copy (T *target, size_t N, const T *src, size_t M)
 A free function to populate a C-style array from a source C-style array.
 
template<typename T , size_t N, size_t M>
static constexpr void copy (T(&target)[N], const T(&src)[M])
 A free function to populate a C-style array from a source C-style array.
 

Detailed Description

Minimal polyfill for the standard library array, since it isn't available with avr-gcc.

Function Documentation

◆ copy() [1/2]

template<typename T >
static constexpr void copy ( T target,
size_t  N,
const T src,
size_t  M 
)
staticconstexpr

A free function to populate a C-style array from a source C-style array.

Here is the caller graph for this function:

◆ copy() [2/2]

template<typename T , size_t N, size_t M>
static constexpr void copy ( T(&)  target[N],
const T(&)  src[M] 
)
staticconstexpr

A free function to populate a C-style array from a source C-style array.

Here is the call graph for this function: