WPILibC++ 2024.3.2
wpi::CalculateSmallVectorDefaultInlinedElements< T > Struct Template Reference

Helper class for calculating the default number of inline elements for SmallVector<T>. More...

#include </home/runner/work/allwpilib/allwpilib/wpiutil/src/main/native/thirdparty/llvm/include/wpi/SmallVector.h>

Static Public Attributes

static constexpr size_t kPreferredSmallVectorSizeof = 64
 
static constexpr size_t PreferredInlineBytes
 
static constexpr size_t NumElementsThatFit = PreferredInlineBytes / sizeof(T)
 
static constexpr size_t value
 

Detailed Description

template<typename T>
struct wpi::CalculateSmallVectorDefaultInlinedElements< T >

Helper class for calculating the default number of inline elements for SmallVector<T>.

This should be migrated to a constexpr function when our minimum compiler support is enough for multi-statement constexpr functions.

Member Data Documentation

◆ kPreferredSmallVectorSizeof

template<typename T >
constexpr size_t wpi::CalculateSmallVectorDefaultInlinedElements< T >::kPreferredSmallVectorSizeof = 64
staticconstexpr

◆ NumElementsThatFit

template<typename T >
constexpr size_t wpi::CalculateSmallVectorDefaultInlinedElements< T >::NumElementsThatFit = PreferredInlineBytes / sizeof(T)
staticconstexpr

◆ PreferredInlineBytes

template<typename T >
constexpr size_t wpi::CalculateSmallVectorDefaultInlinedElements< T >::PreferredInlineBytes
staticconstexpr
Initial value:
=
kPreferredSmallVectorSizeof - sizeof(SmallVector<T, 0>)
static constexpr size_t kPreferredSmallVectorSizeof
Definition: SmallVector.h:1143

◆ value

template<typename T >
constexpr size_t wpi::CalculateSmallVectorDefaultInlinedElements< T >::value
staticconstexpr
Initial value:
=
static constexpr size_t NumElementsThatFit
Definition: SmallVector.h:1178

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