LLVM API Documentation

llvm::SmallVector< T, N > Class Template Reference

#include <SmallVector.h>

Inheritance diagram for llvm::SmallVector< T, N >:

Inheritance graph
[legend]
Collaboration diagram for llvm::SmallVector< T, N >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 SmallVector ()
 SmallVector (unsigned Size, const T &Value=T())
template<typename ItTy>
 SmallVector (ItTy S, ItTy E)
 SmallVector (const SmallVector &RHS)
const SmallVectoroperator= (const SmallVector &RHS)


Detailed Description

template<typename T, unsigned N>
class llvm::SmallVector< T, N >

SmallVector - This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small. It contains some number of elements in-place, which allows it to avoid heap allocation when the actual number of elements is below that threshold. This allows normal "small" cases to be fast without losing generality for large inputs.

Note that this does not attempt to be exception safe.

Definition at line 472 of file SmallVector.h.


Constructor & Destructor Documentation

template<typename T, unsigned N>
llvm::SmallVector< T, N >::SmallVector (  )  [inline]

Definition at line 494 of file SmallVector.h.

template<typename T, unsigned N>
llvm::SmallVector< T, N >::SmallVector ( unsigned  Size,
const T Value = T() 
) [inline, explicit]

Definition at line 497 of file SmallVector.h.

template<typename T, unsigned N>
template<typename ItTy>
llvm::SmallVector< T, N >::SmallVector ( ItTy  S,
ItTy  E 
) [inline]

Definition at line 505 of file SmallVector.h.

template<typename T, unsigned N>
llvm::SmallVector< T, N >::SmallVector ( const SmallVector< T, N > &  RHS  )  [inline]

Definition at line 509 of file SmallVector.h.


Member Function Documentation

template<typename T, unsigned N>
const SmallVector& llvm::SmallVector< T, N >::operator= ( const SmallVector< T, N > &  RHS  )  [inline]

Definition at line 514 of file SmallVector.h.


The documentation for this class was generated from the following file:



This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.