--- title: "to_vector Function" ms.date: "12/30/2016" f1_keywords: ["collection/Windows::Foundation::Collections::to_vector"] helpviewer_keywords: ["to_vector Function"] ms.assetid: 9cdd5123-7243-4def-a1d3-162e0bf6219e --- # to_vector Function Returns a `std::vector` whose value is the same as the collection underlying the specified IVector or IVectorView parameter. ## Syntax ``` template inline ::std::vector to_vector(IVector^ v); template inline ::std::vector to_vector(IVectorView^ v); ``` #### Parameters *T*
The template type parameter. *v*
An IVector or IVectorView interface that provides access to an underlying Vector or VectorView object. ### Return Value ### Requirements **Header:** collection.h **Namespace:** Windows::Foundation::Collections ## See also [Windows::Foundation::Collections Namespace](../cppcx/windows-foundation-collections-namespace-c-cx.md)