concurrent_priority_queue::concurrent_priority_queue コンストラクター

同時実行キュー優先を構築します。

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
);

パラメーター

  • _InputIterator
    入力反復子の型。

  • _Al
    このオブジェクトに対して使用するアロケーター クラス。

  • _Init_capacity
    concurrent_priority_queue のオブジェクトの初期量。

  • _Begin
    コピーする要素範囲内の先頭の要素の位置。

  • _End
    コピーする要素範囲を超える最初の要素の位置。

  • _Src
    要素のコピーまたは移動するソース concurrent_priority_queue のオブジェクト。

解説

すべてのコンストラクターは、アロケーター オブジェクト _Al を保存し、優先キューを初期化します。

一つ目のコンストラクターは、空の初期優先キューを指定し、オプションでアロケーターを指定します。

2 つ目のコンストラクターは、初期量 _Init_capacity の優先順位キューを指定し、オプションでアロケーターを指定します。

3 つ目のコンストラクターは、反復子範囲 [_Begin、 _End)で指定される値を指定し、オプションでアロケーターを指定します。

4 つ目と 5 つ目のコンストラクターは、優先順位キュー _Srcのコピーを指定します。

6 つ目と 7 つ目のコンストラクターは、優先順位キュー _Srcの移動を指定します。

必要条件

ヘッダー: concurrent_priority_queue.h

名前空間: の同時実行

参照

関連項目

concurrent_priority_queue クラス