다음을 통해 공유


concurrent_vector::concurrent_vector 생성자

동시 벡터를 생성합니다.

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

concurrent_vector(
   const concurrent_vector& _Vector
);

template<
   class M
>
concurrent_vector(
   const concurrent_vector<_Ty,
   M>& _Vector,
   const allocator_type& _Al = allocator_type()
);

concurrent_vector(
   concurrent_vector && _Vector
);

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
    입력 반복기의 형식입니다.

  • _Al
    이 개체에 사용할 할당자 클래스입니다.

  • _Vector
    요소를 복사하거나 이동할 소스 concurrent_vector 개체입니다.

  • _N
    concurrent_vector 개체의 초기 용량입니다.

  • _Item
    생성된 개체에 있는 요소의 값입니다.

  • _Begin
    복사할 요소의 범위에 있는 첫 번째 요소의 위치입니다.

  • _End
    복사할 요소의 범위를 벗어나 첫 번째 요소의 위치입니다.

설명

모든 생성자는 할당기 개체 _Al를 저장하고 벡터를 초기화합니다.

첫 번째 생성자는 빈 초기 벡터를 지정하고 사용할 할당자 형식을 명시적으로 지정합니다.

두 번째 및 세 번째 생성자는 동시 벡터 _Vector의 복사본을 지정합니다.

네 번째 생성자는 동시에 발생하는 벡터 _Vector의 이동을 지정합니다.

다섯번째 생성자는 클래스 _Ty에 대한 기본값의 지정된 수(_N)의 요소의 반복을 지정합니다.

여섯 번째 생성자는 값 _Item의_N요소의 반복 값을 지정합니다.

마지막 생성기는 반복기 범위에서 제공하는 값을 지정합니다[_Begin, _End).

요구 사항

헤더: concurrent_vector.h

네임스페이스: 동시성

참고 항목

참조

concurrent_vector 클래스