WPILibC++ 2024.3.2
array.h File Reference
#include <array>
#include <concepts>
#include <cstddef>
#include <tuple>
#include <utility>

Go to the source code of this file.

Classes

struct  wpi::empty_array_t
 
class  wpi::array< T, N >
 This class is a wrapper around std::array that does compile time size checking. More...
 
struct  std::tuple_size< wpi::array< T, N > >
 
struct  std::tuple_element< I, wpi::array< T, N > >
 

Namespaces

namespace  wpi
 
namespace  std
 

Functions

template<typename T , std::convertible_to< T >... Ts>
 wpi::array (T, Ts...) -> array< T, 1+sizeof...(Ts)>
 
template<size_t I, typename T , size_t N>
requires (I < N)
constexpr T & get (wpi::array< T, N > &arr) noexcept
 
template<size_t I, typename T , size_t N>
requires (I < N)
constexpr T && get (wpi::array< T, N > &&arr) noexcept
 
template<size_t I, typename T , size_t N>
requires (I < N)
constexpr const T & get (const wpi::array< T, N > &arr) noexcept
 
template<size_t I, typename T , size_t N>
requires (I < N)
constexpr const T && get (const wpi::array< T, N > &&arr) noexcept
 

Function Documentation

◆ get() [1/4]

template<size_t I, typename T , size_t N>
requires (I < N)
constexpr const T && get ( const wpi::array< T, N > &&  arr)
constexprnoexcept

◆ get() [2/4]

template<size_t I, typename T , size_t N>
requires (I < N)
constexpr const T & get ( const wpi::array< T, N > &  arr)
constexprnoexcept

◆ get() [3/4]

template<size_t I, typename T , size_t N>
requires (I < N)
constexpr T && get ( wpi::array< T, N > &&  arr)
constexprnoexcept

◆ get() [4/4]

template<size_t I, typename T , size_t N>
requires (I < N)
constexpr T & get ( wpi::array< T, N > &  arr)
constexprnoexcept