Freigeben über


concurrent_priority_queue::concurrent_priority_queue-Konstruktor

Erstellt eine gleichzeitige Prioritätswarteschlange.

explicit concurrent_priority_queue(
   const allocator_type& _Al = allocator_type()
);

explicit concurrent_priority_queue(
   size_type _Init_capacity,
   const allocator_type& _Al = allocator_type()
);

template<
   typename _InputIterator
>
concurrent_priority_queue(
   _InputIterator_Begin,
   _InputIterator_End,
   const allocator_type& _Al = allocator_type()
);

concurrent_priority_queue(
   const concurrent_priority_queue& _Src
);

concurrent_priority_queue(
   const concurrent_priority_queue& _Src,
   const allocator_type& _Al
);

concurrent_priority_queue(
   concurrent_priority_queue&& _Src
);

concurrent_priority_queue(
   concurrent_priority_queue&& _Src,
   const allocator_type& _Al
);

Parameter

  • _InputIterator
    Der Typ des Eingabeiterators.

  • _Al
    Die mit diesem Objekt zu verwendende Zuweisungsklasse.

  • _Init_capacity
    Die Anfangskapazität des concurrent_priority_queue-Objekts.

  • _Begin
    Die Position des ersten Elements in dem zu kopierenden Elementbereich.

  • _End
    Die Position des ersten Elements nach dem zu kopierenden Elementbereich.

  • _Src
    Das concurrent_priority_queue-Quellobjekt, aus dem Elemente kopiert oder verschoben werden sollen.

Hinweise

Alle Konstruktoren speichern ein Zuweisungsobjekt _Al und initialisieren die Prioritätswarteschlange.

Der erste Konstruktor gibt eine leere ursprünglichen Prioritätswarteschlange an und kann Angaben zu einer Zuweisung an.

Der zweite Konstruktor gibt eine Prioritätswarteschlange mit einer Anfangskapazität _Init_capacity und kann Angaben zu einer Zuweisung an.

Der dritte Konstruktor gibt die Werte an, die vom Iteratorbereich [_Begin, _End) angegeben werden und kann Angaben zu einer Zuweisung an.

Die vierten und fünften Konstruktoren geben eine Kopie der Prioritätswarteschlange _Src an.

Die 6. und 7. Konstruktoren geben eine Verschiebung der Prioritätswarteschlange _Src an.

Anforderungen

Header: concurrent_priority_queue.h

Namespace: Parallelität

Siehe auch

Referenz

concurrent_priority_queue-Klasse