共用方式為


concurrent_queue::concurrent_queue 建構函式

建構並行的佇列。

explicit concurrent_queue(
   const allocator_type &_Al = allocator_type()
);
template<
   typename _Ty,
   class _Ax
>
concurrent_queue<_Ty,_Ax>::concurrent_queue(
   const concurrent_queue& _Queue,
   const allocator_type& _Al = allocator_type()
);
template<
   typename _InputIterator
>
concurrent_queue(
   _InputIterator_Begin,
   _InputIterator_End
);

參數

  • _InputIterator
    指定值範圍之輸入 Iterator 的型別。

  • _Al
    搭配這個物件使用的配置器類別。

  • _OtherQ
    要從中複製項目的來源 concurrent_queue 物件。

  • _Begin
    在要複製的項目的範圍中之第一個項目的位置。

  • _End
    超出要複製的項目的範圍之第一個項目的位置。

備註

所有的建構函式均會存放配置器物件 _Al 並初始化佇列。

第一個建構函式指定空的初始佇列,並明確地指定配置器使用的型別。

第二個建構函式指定並行佇列 _OtherQ 的複本。

第三個建構函式會指定 Iterator 範圍 [_Begin, _End) 提供的值。

需求

標頭: concurrent_queue.h

**命名空間:**並行

請參閱

其他資源

concurrent_queue 類別