class SmallVector

Declaration

template <typename T, unsigned int N>
class SmallVector { /* full declaration omitted */ };

Description

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.

Declared at: llvm/include/llvm/ADT/SmallVector.h:837

Templates

T
unsigned int N

Method Overview

Methods

SmallVector<T, N>()

Declared at: llvm/include/llvm/ADT/SmallVector.h:839

SmallVector<T, N>(size_t Size,
                  const T& Value = type -
                                   parameter - 0 -
                                   0())

Declared at: llvm/include/llvm/ADT/SmallVector.h:846

Parameters

size_t Size
const T& Value = type-parameter-0-0()

SmallVector<T, N>(std::initializer_list<T> IL)

Declared at: llvm/include/llvm/ADT/SmallVector.h:865

Parameters

std::initializer_list<T> IL

SmallVector<T, N>(const SmallVector<T, N>& RHS)

Declared at: llvm/include/llvm/ADT/SmallVector.h:869

Parameters

const SmallVector<T, N>& RHS

SmallVector<T, N>(SmallVector<T, N>&& RHS)

Declared at: llvm/include/llvm/ADT/SmallVector.h:879

Parameters

SmallVector<T, N>&& RHS

SmallVector<T, N>(SmallVectorImpl<T>&& RHS)

Declared at: llvm/include/llvm/ADT/SmallVector.h:884

Parameters

SmallVectorImpl<T>&& RHS

template <typename ItTy,
          typename = typename std::enable_if<
              std::is_convertible<
                  typename std::iterator_traits<
                      ItTy>::iterator_category,
                  std::input_iterator_tag>::
                  value>::type>
SmallVector<T, N>(ItTy S, ItTy E)

Declared at: llvm/include/llvm/ADT/SmallVector.h:855

Templates

ItTy
= typename std::enable_if<std::is_convertible<typename std::iterator_traits<ItTy>::iterator_category, std::input_iterator_tag>::value>::type

Parameters

ItTy S
ItTy E

template <typename RangeTy>
SmallVector<T, N>(
    const iterator_range<RangeTy>& R)

Declared at: llvm/include/llvm/ADT/SmallVector.h:860

Templates

RangeTy

Parameters

const iterator_range<RangeTy>& R

~SmallVector<T, N>()

Declared at: llvm/include/llvm/ADT/SmallVector.h:841