class SmallPtrSet
Declaration
template <class PtrType, unsigned int SmallSize>
class SmallPtrSet { /* full declaration omitted */ };
Description
SmallPtrSet - This class implements a set which is optimized for holding SmallSize or less elements. This internally rounds up SmallSize to the next power of two if it is not already a power of two. See the comments above SmallPtrSetImplBase for details of the algorithm.
Declared at: llvm/include/llvm/ADT/SmallPtrSet.h:443
Templates
- PtrType
- unsigned int SmallSize
Method Overview
- public SmallPtrSet<PtrType, SmallSize>()
- public SmallPtrSet<PtrType, SmallSize>(const SmallPtrSet<PtrType, SmallSize> & that)
- public SmallPtrSet<PtrType, SmallSize>(SmallPtrSet<PtrType, SmallSize> && that)
- public SmallPtrSet<PtrType, SmallSize>(std::initializer_list<PtrType> IL)
- public template <typename It> SmallPtrSet<PtrType, SmallSize>(It I, It E)
- public void swap(SmallPtrSet<PtrType, SmallSize> & RHS)
Methods
¶SmallPtrSet<PtrType, SmallSize>()
SmallPtrSet<PtrType, SmallSize>()
Declared at: llvm/include/llvm/ADT/SmallPtrSet.h:457
¶SmallPtrSet<PtrType, SmallSize>(
const SmallPtrSet<PtrType, SmallSize>& that)
SmallPtrSet<PtrType, SmallSize>(
const SmallPtrSet<PtrType, SmallSize>& that)
Declared at: llvm/include/llvm/ADT/SmallPtrSet.h:458
Parameters
- const SmallPtrSet<PtrType, SmallSize>& that
¶SmallPtrSet<PtrType, SmallSize>(
SmallPtrSet<PtrType, SmallSize>&& that)
SmallPtrSet<PtrType, SmallSize>(
SmallPtrSet<PtrType, SmallSize>&& that)
Declared at: llvm/include/llvm/ADT/SmallPtrSet.h:459
Parameters
- SmallPtrSet<PtrType, SmallSize>&& that
¶SmallPtrSet<PtrType, SmallSize>(
std::initializer_list<PtrType> IL)
SmallPtrSet<PtrType, SmallSize>(
std::initializer_list<PtrType> IL)
Declared at: llvm/include/llvm/ADT/SmallPtrSet.h:467
Parameters
- std::initializer_list<PtrType> IL
¶template <typename It>
SmallPtrSet<PtrType, SmallSize>(It I, It E)
template <typename It>
SmallPtrSet<PtrType, SmallSize>(It I, It E)
Declared at: llvm/include/llvm/ADT/SmallPtrSet.h:463
Templates
- It
Parameters
- It I
- It E
¶void swap(SmallPtrSet<PtrType, SmallSize>& RHS)
void swap(SmallPtrSet<PtrType, SmallSize>& RHS)
Description
swap - Swaps the elements of two sets.
Declared at: llvm/include/llvm/ADT/SmallPtrSet.h:494
Parameters
- SmallPtrSet<PtrType, SmallSize>& RHS