ΒΆtemplate <unsigned int Size, typename R>
SmallVector<typename std::remove_const<
                typename std::remove_reference<
                    decltype(*std::begin(
                        std::declval<R&>()))>::
                    type>::type,
            Size>
to_vector(R&& Range)

Description

Given a range of type R, iterate the entire range and return a SmallVector with elements of the vector. This is useful, for example, when you want to iterate a range and then sort the results.

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

Templates

unsigned int Size
R

Parameters

R&& Range