Vector::Vector Constructor

Initializes a new instance of the Vector class.

Vector();

explicit Vector(
    unsigned int size
    );

Vector(
    unsigned int size,
    T value
    );

template <typename U> explicit Vector(
    const ::std::vector<U>& v
    );

template <typename U> explicit Vector(
    std::vector<U>&& v
    );

Vector(
    const T * ptr,
    unsigned int size
    );

template <size_t N> explicit Vector(
    const T(&arr)[N]
    );

template <size_t N> explicit Vector(
    const std::array<T, N>& a
    );

explicit Vector(
    const Array<T>^ arr
    );

template <typename InIt> Vector(
    InIt first,
    InIt last
    );

Vector(
    std::initializer_list<T> il
    );

a

A std::array that will be used to initialize the Vector.

a

A Platform::Array that will be used to initialize the Vector.

InIt

The type of a collection of objects that is used to initialize the current Vector.

il

A std::initializer_list of objects of type T that will be used to initialize the Vector.

N

The number of elements in a collection of objects that is used to initialize the current Vector.

size

The number of elements in the Vector.

value

A value that is used to initialize each element in the current Vector.

v

An Lvalues and Rvalues to a std::vector that is used to initialize the current Vector.

ptr

Pointer to a std::vector that is used to initialize the current Vector.

arr

A Platform::Array object that is used to initialize the current Vector.

a

A std::array object that is used to initialize the current Vector.

first

The first element in a sequence of objects that are used to initialize the current Vector. The type of first is passed by means of perfect forwarding. For more information, see Rvalue Reference Declarator: &&.

last

The last element in a sequence of objects that are used to initialize the current Vector. The type of last is passed by means of perfect forwarding. For more information, see Rvalue Reference Declarator: &&.

Header: collection.h

Namespace: Platform::Collections

Show:
© 2014 Microsoft