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
    값 범위를 지정하는 입력 반복기의 형식입니다.

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

  • _OtherQ
    요소를 복사할 소스 concurrent_queue 개체입니다.

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

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

설명

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

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

두 번째 생성자는 동시 큐 _OtherQ의 복사본을 지정합니다.

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

요구 사항

헤더: concurrent_queue.h

네임스페이스: 동시성

참고 항목

기타 리소스

concurrent_queue 클래스