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

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

  • _OtherQ
    소스 concurrent_queue 복사 하거나 요소를 이동 하는 개체입니다.

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

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

설명

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

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

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

세 번째 생성자는 이동의 동시 큐 지정 _OtherQ.

네 번째 생성자는 반복기에 의해 제공 되는 값을 지정 합니다. [_Begin, _End).

요구 사항

헤더: concurrent_queue.h

네임 스페이스: 동시성

참고 항목

참조

concurrent_queue 클래스