다음을 통해 공유


concurrent_unordered_map 클래스

concurrent_unordered_map클래스는 std::pair<const _Key_type, _Element_type> 형식 요소의 다양한 길이의 시퀀스를 제어하는 동시성 안전 컨테이너입니다. 시퀀스는 동시성이 보장된 추가, 요소 액세스, 반복기 액세스 및 반복기 통과 작업을 활성화하는 방식으로 표현됩니다.

template <
   typename _Key_type,
   typename _Element_type,
   typename _Hasher = std::tr1::hash<_Key_type>,
   typename _Key_equality = std::equal_to<_Key_type>,
   typename _Allocator_type = std::allocator<std::pair<const _Key_type,
   _Element_type> >
>
, typename _Key_equality = std::equal_to<_Key_type>, typename _Allocator_type = std::allocator<std::pair<const _Key_type, _Element_type> > > class concurrent_unordered_map : public details::_Concurrent_hash< details::_Concurrent_unordered_map_traits<_Key_type, _Element_type, details::_Hash_compare<_Key_type, _Hasher, _Key_equality>, _Allocator_type, false> >;

매개 변수

  • _Key_type
    키 형식입니다.

  • _Element_type
    매핑된 형식입니다.

  • _Hasher
    해시 함수 개체 형식입니다. 이 인수는 선택적 요소이며 기본값은 std::tr1::hash<_Key_type**>**입니다.

  • _Key_equality
    같음 비교 함수 개체 형식. 이 인수는 선택적 요소이며 기본값은 std::equal_to<_Key_type**>**입니다.

  • _Allocator_type
    순서가 지정되지 않은 동시 맵을 위한 할당 및 할당 취소에 대한 세부 정보를 캡슐화하는 저장된 할당기 개체를 나타내는 형식입니다. 이 인수는 선택적 요소이며 기본값은 std::allocator<std::pair<_Key_type, _Element_type**>>**입니다.

멤버

공용 Typedefs

Name

설명

allocator_type

저장소 관리를 위한 할당자의 형식입니다.

const_iterator

제어되는 시퀀스에 대한 상수 반복기의 형식입니다.

const_local_iterator

제어되는 시퀀스에 대한 상수 버킷 반복기의 형식입니다.

const_pointer

요소에 대한 상수 포인터의 형식입니다.

const_reference

요소에 대한 상수 참조의 형식입니다.

difference_type

두 요소 사이의 부호가 있는 거리의 형식입니다.

hasher

해시 함수의 형식입니다.

iterator

제어되는 시퀀스에 대한 반복기의 형식입니다.

key_equal

비교 함수의 형식입니다.

key_type

정렬 키의 형식입니다.

local_iterator

제어되는 시퀀스에 대한 버킷 반복기의 형식입니다.

mapped_type

각 키와 연결된 매핑된 값의 형식입니다.

pointer

요소에 대한 포인터의 형식입니다.

reference

요소에 대한 참조의 형식입니다.

size_type

두 요소 사이의 부호가 없는 거리의 형식입니다.

value_type

요소의 형식입니다.

Public 생성자

Name

설명

concurrent_unordered_map::concurrent_unordered_map 생성자

오버로드됨. 순서가 지정되지 않은 동시 맵을 생성합니다.

Public 메서드

Name

설명

concurrent_unordered_map::at 메서드

오버로드됨. concurrent_unordered_map에서 지정된 키 값이 있는 요소를 찾습니다. 이 메서드는 동시성이 보장됩니다.

concurrent_unordered_map::hash_function 메서드

저장된 해시 함수 코드 개체를 가져옵니다.

concurrent_unordered_map::insert 메서드

오버로드됨. concurrent_unordered_map 개체에 요소를 추가합니다.

concurrent_unordered_map::key_eq 메서드

저장된 같음 비교 함수 개체를 가져옵니다.

concurrent_unordered_map::swap 메서드

concurrent_unordered_map 개체의 내용을 바꿉니다. 이 메서드는 동시성이 보장되지 않습니다.

concurrent_unordered_map::unsafe_erase 메서드

오버로드됨. 지정된 위치에 있는 concurrent_unordered_map에서 요소를 제거합니다. 이 메서드는 동시성이 보장되지 않습니다.

Public 연산자

Name

설명

concurrent_unordered_map::operator[] 연산자

오버로드됨. 지정된 키가 있는 요소를 찾거나 삽입합니다. 이 메서드는 동시성이 보장됩니다.

concurrent_unordered_map::operator= 연산자

오버로드됨. 다른 concurrent_unordered_map 개체의 내용을 여기에 할당합니다. 이 메서드는 동시성이 보장되지 않습니다.

설명

concurrent_unordered_map에 대한 자세한 내용은 병렬 컨테이너 및 개체를 참조하십시오.

상속 계층

_Traits

_Concurrent_hash

concurrent_unordered_map

요구 사항

헤더: concurrent_unordered_map.h

네임스페이스: 동시성

참고 항목

참조

동시성 네임스페이스

개념

병렬 컨테이너 및 개체