Windows Dev Center

MapView::MapView Constructor

Initializes a new instance of the MapView class.

explicit MapView(
    const C& comp = C()
    );

explicit MapView(
    const ::std::map<K, V, C>& m
    );

explicit MapView(
    std::map<K, V, C>&& m
    );

template <typename InIt> MapView(
    InIt first,
    InIt last,
    const C& comp = C()
    );

MapView(::std::initializer_list<
    std::pair<const K, V>> il,
    const C& comp = C()
    );

InIt

The typename of the current MapView.

comp

A function object that can compare two element values as sort keys to determine their relative order in the MapView.

m

A reference or Lvalues and Rvalues (Visual C++) to a map Class that is used to initialize the current MapView.

first

The input iterator of the first element in a range of elements used to initialize the current MapView.

last

The input iterator of the first element after a range of elements used to initialize the current MapView.

il

A std::initializer_list<std::pair<K,V>> whose elements will be inserted into the MapView.

Header: collection.h

Namespace: Platform::Collections

Show:
© 2015 Microsoft