concurrent_queue::concurrent_queue 建構函式

建構並行的佇列。

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

concurrent_queue(
   const concurrent_queue& _OtherQ,
   const allocator_type &_Al = allocator_type()
);

concurrent_queue(
   concurrent_queue&& _OtherQ,
   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 的複本。

第三個建構函式指定並行的佇列的移動_OtherQ。

第四個建構函式指定 iterator 範圍所提供的值 [_Begin, _End)。

需求

標頭: concurrent_queue.h

Namespace: 並行存取

請參閱

參考

concurrent_queue 類別