llvm::to_vector

to_vector overloads

Synopses

Declared in <llvm/ADT/SmallVector.h>

Copy the elements of Range into a SmallVector with default inline size.

template<typename R>
SmallVector<ValueTypeFromRangeType<R>>
to_vector(R&& Range);
» more...

Copy the elements of Range into a SmallVector with default inline size.

template<typename R>
SmallVector<ValueTypeFromRangeType<R>>
to_vector(R&& Range);
» more...

Copy the elements of a range into a SmallVector with inline size Size.

template<
    unsigned int Size,
    typename R>
SmallVector<ValueTypeFromRangeType<R>, Size>
to_vector(R&& Range);
» more...

Copy the elements of a range into a SmallVector with inline size Size.

template<
    unsigned int Size,
    typename R>
SmallVector<ValueTypeFromRangeType<R>, Size>
to_vector(R&& Range);
» more...

Return Value

  • SmallVector containing the elements of Range.
  • SmallVector with inline size Size containing the elements of Range.

Parameters

NameDescription
RangeRange whose elements are copied.