LLVM  14.0.0git
Static Public Attributes | List of all members
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"

Collaboration diagram for llvm::CalculateSmallVectorDefaultInlinedElements< T >:
Collaboration graph
[legend]

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 1102 of file SmallVector.h.

Member Data Documentation

◆ kPreferredSmallVectorSizeof

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

Definition at line 1110 of file SmallVector.h.

◆ NumElementsThatFit

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

Definition at line 1145 of file SmallVector.h.

◆ PreferredInlineBytes

template<typename T >
constexpr size_t llvm::CalculateSmallVectorDefaultInlinedElements< T >::PreferredInlineBytes
staticconstexpr
Initial value:
=
kPreferredSmallVectorSizeof - sizeof(SmallVector<T, 0>)

Definition at line 1143 of file SmallVector.h.

◆ value

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

Definition at line 1146 of file SmallVector.h.


The documentation for this struct was generated from the following file:
llvm::CalculateSmallVectorDefaultInlinedElements::NumElementsThatFit
static constexpr size_t NumElementsThatFit
Definition: SmallVector.h:1145
llvm::CalculateSmallVectorDefaultInlinedElements::kPreferredSmallVectorSizeof
static constexpr size_t kPreferredSmallVectorSizeof
Definition: SmallVector.h:1110