WPILibC++ 2023.4.3-108-ge5452e3
|
This is the part of SmallVectorTemplateBase which does not depend on whether the type T is a POD. More...
Public Types | |
using | size_type = size_t |
using | difference_type = ptrdiff_t |
using | value_type = T |
using | iterator = T * |
using | const_iterator = const T * |
using | const_reverse_iterator = std::reverse_iterator< const_iterator > |
using | reverse_iterator = std::reverse_iterator< iterator > |
using | reference = T & |
using | const_reference = const T & |
using | pointer = T * |
using | const_pointer = const T * |
Public Member Functions | |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
reverse_iterator | rbegin () |
const_reverse_iterator | rbegin () const |
reverse_iterator | rend () |
const_reverse_iterator | rend () const |
size_type | size_in_bytes () const |
size_type | max_size () const |
size_t | capacity_in_bytes () const |
pointer | data () |
Return a pointer to the vector's buffer, even if empty(). More... | |
const_pointer | data () const |
Return a pointer to the vector's buffer, even if empty(). More... | |
reference | operator[] (size_type idx) |
const_reference | operator[] (size_type idx) const |
reference | front () |
const_reference | front () const |
reference | back () |
const_reference | back () const |
size_t | capacity () const |
LLVM_NODISCARD bool | empty () const |
size_t | size () const |
Public Member Functions inherited from wpi::SmallVectorBase | |
size_t | size () const |
size_t | capacity () const |
LLVM_NODISCARD bool | empty () const |
Protected Member Functions | |
SmallVectorTemplateCommon (size_t Size) | |
void | grow_pod (size_t MinSize, size_t TSize) |
bool | isSmall () const |
Return true if this is a smallvector which has not had dynamic memory allocated for it. More... | |
void | resetToSmall () |
Put this vector in a state of being small. More... | |
bool | isReferenceToRange (const void *V, const void *First, const void *Last) const |
Return true if V is an internal reference to the given range. More... | |
bool | isReferenceToStorage (const void *V) const |
Return true if V is an internal reference to this vector. More... | |
bool | isRangeInStorage (const void *First, const void *Last) const |
Return true if First and Last form a valid (possibly empty) range in this vector's storage. More... | |
bool | isSafeToReferenceAfterResize (const void *Elt, size_t NewSize) |
Return true unless Elt will be invalidated by resizing the vector to NewSize. More... | |
void | assertSafeToReferenceAfterResize (const void *Elt, size_t NewSize) |
Check whether Elt will be invalidated by resizing the vector to NewSize. More... | |
void | assertSafeToAdd (const void *Elt, size_t N=1) |
Check whether Elt will be invalidated by increasing the size of the vector by N. More... | |
void | assertSafeToReferenceAfterClear (const T *From, const T *To) |
Check whether any part of the range will be invalidated by clearing. More... | |
template<class ItTy , std::enable_if_t<!std::is_same< std::remove_const_t< ItTy >, T * >::value, bool > = false> | |
void | assertSafeToReferenceAfterClear (ItTy, ItTy) |
void | assertSafeToAddRange (const T *From, const T *To) |
Check whether any part of the range will be invalidated by growing. More... | |
template<class ItTy , std::enable_if_t<!std::is_same< std::remove_const_t< ItTy >, T * >::value, bool > = false> | |
void | assertSafeToAddRange (ItTy, ItTy) |
Protected Member Functions inherited from wpi::SmallVectorBase | |
SmallVectorBase ()=delete | |
SmallVectorBase (void *FirstEl, size_t TotalCapacity) | |
void * | mallocForGrow (size_t MinSize, size_t TSize, size_t &NewCapacity) |
This is a helper for grow() that's out of line to reduce code duplication. More... | |
void | grow_pod (void *FirstEl, size_t MinSize, 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. More... | |
void | set_size (size_t N) |
Set the array size to N , which the current array must have enough capacity for. More... | |
Static Protected Member Functions | |
template<class U > | |
static const T * | reserveForParamAndGetAddressImpl (U *This, const T &Elt, size_t N) |
Reserve enough space to add one element, and return the updated element pointer in case it was a reference to the storage. More... | |
Static Protected Member Functions inherited from wpi::SmallVectorBase | |
static constexpr size_t | SizeTypeMax () |
The maximum value of the Size_T used. More... | |
Additional Inherited Members | |
Protected Attributes inherited from wpi::SmallVectorBase | |
void * | BeginX |
unsigned | Size = 0 |
unsigned | Capacity |
This is the part of SmallVectorTemplateBase which does not depend on whether the type T is a POD.
The extra dummy template argument is used by ArrayRef to avoid unnecessarily requiring T to be complete.
using wpi::SmallVectorTemplateCommon< T, typename >::const_iterator = const T * |
using wpi::SmallVectorTemplateCommon< T, typename >::const_pointer = const T * |
using wpi::SmallVectorTemplateCommon< T, typename >::const_reference = const T & |
using wpi::SmallVectorTemplateCommon< T, typename >::const_reverse_iterator = std::reverse_iterator<const_iterator> |
using wpi::SmallVectorTemplateCommon< T, typename >::difference_type = ptrdiff_t |
using wpi::SmallVectorTemplateCommon< T, typename >::iterator = T * |
using wpi::SmallVectorTemplateCommon< T, typename >::pointer = T * |
using wpi::SmallVectorTemplateCommon< T, typename >::reference = T & |
using wpi::SmallVectorTemplateCommon< T, typename >::reverse_iterator = std::reverse_iterator<iterator> |
using wpi::SmallVectorTemplateCommon< T, typename >::size_type = size_t |
using wpi::SmallVectorTemplateCommon< T, typename >::value_type = T |
|
inlineprotected |
|
inlineprotected |
Check whether Elt will be invalidated by increasing the size of the vector by N.
|
inlineprotected |
Check whether any part of the range will be invalidated by growing.
|
inlineprotected |
|
inlineprotected |
Check whether any part of the range will be invalidated by clearing.
|
inlineprotected |
|
inlineprotected |
Check whether Elt will be invalidated by resizing the vector to NewSize.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Return a pointer to the vector's buffer, even if empty().
|
inline |
Return a pointer to the vector's buffer, even if empty().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inlineprotected |
Return true if First and Last form a valid (possibly empty) range in this vector's storage.
|
inlineprotected |
Return true if V is an internal reference to the given range.
|
inlineprotected |
Return true if V is an internal reference to this vector.
|
inlineprotected |
Return true unless Elt will be invalidated by resizing the vector to NewSize.
|
inlineprotected |
Return true if this is a smallvector which has not had dynamic memory allocated for it.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestaticprotected |
Reserve enough space to add one element, and return the updated element pointer in case it was a reference to the storage.
|
inlineprotected |
Put this vector in a state of being small.
|
inline |
|
inline |