Vector::Vector Constructor

Initializes a new instance of the Vector class.

Vector();
explicit Vector(
   UInt32 size
);
Vector(
   UInt32 size,
   T value
);
explicit Vector(
   const ::std::vector<T>& v
);
explicit Vector(
   ::std::vector<T>&& v
);
Vector(
   const T * ptr,
   UInt32 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 ::Platform::Array<T>^ arr
);

template <
   typename InIt
>
Vector(
   InItfirst,
   InItlast
);

InIt

The type of a collection of objects that is used to initialize the current 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