WPILibC++ 2023.4.3
array.h File Reference
#include <array>
#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
 /file This file defines the SmallVector class.
 
namespace  std
 

Functions

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

Variables

constexpr empty_array_t wpi::empty_array
 

Function Documentation

◆ get() [1/4]

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

◆ get() [2/4]

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

◆ get() [3/4]

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

◆ get() [4/4]

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