WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
wpi::WpiArrayEmplaceWrapper< T, N > Struct Template Reference

A wrapper around a wpi::array that lets us treat it as a limited sized vector. More...

#include <wpi/protobuf/ProtobufCallbacks.h>

Public Member Functions

size_t size () const
 
template<typename... ArgTypes>
T & emplace_back (ArgTypes &&... Args)
 

Public Attributes

wpi::array< T, N > m_array {wpi::empty_array_t{}}
 
size_t m_currentIndex = 0
 

Detailed Description

template<ProtoCallbackUnpackable T, size_t N>
struct wpi::WpiArrayEmplaceWrapper< T, N >

A wrapper around a wpi::array that lets us treat it as a limited sized vector.

Member Function Documentation

◆ emplace_back()

template<ProtoCallbackUnpackable T, size_t N>
template<typename... ArgTypes>
T & wpi::WpiArrayEmplaceWrapper< T, N >::emplace_back ( ArgTypes &&... Args)
inline

◆ size()

template<ProtoCallbackUnpackable T, size_t N>
size_t wpi::WpiArrayEmplaceWrapper< T, N >::size ( ) const
inline

Member Data Documentation

◆ m_array

template<ProtoCallbackUnpackable T, size_t N>
wpi::array<T, N> wpi::WpiArrayEmplaceWrapper< T, N >::m_array {wpi::empty_array_t{}}

◆ m_currentIndex

template<ProtoCallbackUnpackable T, size_t N>
size_t wpi::WpiArrayEmplaceWrapper< T, N >::m_currentIndex = 0

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