Template Struct CalculateSmallVectorDefaultInlinedElements¶
Defined in File SmallVector.hpp
Struct Documentation¶
-
template<typename T>
struct CalculateSmallVectorDefaultInlinedElements¶ 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.
Public Static Attributes
-
static constexpr size_t kPreferredSmallVectorSizeof = 64¶
-
static constexpr size_t PreferredInlineBytes = kPreferredSmallVectorSizeof - sizeof(SmallVector<T, 0>)¶
-
static constexpr size_t NumElementsThatFit = PreferredInlineBytes / sizeof(T)¶
-
static constexpr size_t value = NumElementsThatFit == 0 ? 1 : NumElementsThatFit¶
-
static constexpr size_t kPreferredSmallVectorSizeof = 64¶