建構並行的向量。
explicit concurrent_vector(
const allocator_type &_Al = allocator_type()
);
concurrent_vector(
const concurrent_vector& _Vector,
const allocator_type& _Al = allocator_type()
);
template<
class M
>
concurrent_vector(
const concurrent_vector<_Ty,
M>& _Vector,
const allocator_type& _Al = allocator_type()
);
explicit concurrent_vector(
size_type _N
);
concurrent_vector(
size_type _N,
const_reference _Item,
const allocator_type& _Al = allocator_type()
);
template<
class _InputIterator
>
concurrent_vector(
_InputIterator_Begin,
_InputIterator_End,
const allocator_type &_Al = allocator_type()
);
參數
M
來源向量的配置器型別。_InputIterator
輸入 Iterator 類型。_Al
搭配這個物件使用的配置器類別。_Vector
要從中複製項目的來源 concurrent_vector 物件。_N
concurrent_vector 物件的初始大小。_Item
建構物件中的項目的值。_Begin
在要複製的項目的範圍中之第一個項目的位置。_End
超出要複製的項目的範圍之第一個項目的位置。
備註
所有的建構函式均會存放配置器物件 _Al 並初始化向量。
第一個建構函式指定空的初始向量,並明確地指定配置器類型。 要使用。
第二個和第三個建構函式指定並行向量 _Vector 的複本。
第四個建構函式指定類別 _Ty 的項目的指定重複次數 (_N)。
第五個建構函式會指定 _Item 值的項目重複 (_N)。
最後一個建構函式會指定 Iterator 範圍 [_Begin, _End) 提供的值。
需求
標頭: concurrent_vector.h
**命名空間:**並行