LLVM 22.0.0git
llvm::CalculateSmallVectorDefaultInlinedElements< T > Struct Template Reference

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

#include "llvm/ADT/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 llvm::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.

Definition at line 1130 of file SmallVector.h.

Member Data Documentation

โ—† kPreferredSmallVectorSizeof

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

Definition at line 1138 of file SmallVector.h.

โ—† NumElementsThatFit

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

Definition at line 1173 of file SmallVector.h.

โ—† PreferredInlineBytes

template<typename T>
size_t llvm::CalculateSmallVectorDefaultInlinedElements< T >::PreferredInlineBytes
staticconstexpr
Initial value:
=
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.

Definition at line 1171 of file SmallVector.h.

โ—† value

template<typename T>
size_t llvm::CalculateSmallVectorDefaultInlinedElements< T >::value
staticconstexpr
Initial value:

Definition at line 1174 of file SmallVector.h.


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