Class SmallVectorBase

Inheritance Relationships

Derived Types

Class Documentation

class SmallVectorBase

This is all the non-templated stuff common to all SmallVectors.

Subclassed by llvm_vecsmall::SmallVectorTemplateCommon< uint16_t >, llvm_vecsmall::SmallVectorTemplateCommon< KeySuffix >, llvm_vecsmall::SmallVectorTemplateCommon< int >, llvm_vecsmall::SmallVectorTemplateCommon< MemberScope >, llvm_vecsmall::SmallVectorTemplateCommon< T, typename >

Public Functions

inline size_t size_in_bytes() const

This returns size()*sizeof(T).

inline size_t capacity_in_bytes() const

capacity_in_bytes - This returns capacity()*sizeof(T).

inline LLVM_VECSMALL_NODISCARD bool empty () const

Protected Functions

inline SmallVectorBase(void *FirstEl, size_t Size)
inline void grow_pod(void *FirstEl, size_t MinSizeInBytes, size_t TSize)

This is an implementation of the grow() method which only works on POD-like data types and is out of line to reduce code duplication.

grow_pod - This is an implementation of the grow() method which only works on POD-like datatypes and is out of line to reduce code duplication.

Protected Attributes

void *BeginX
void *EndX
void *CapacityX