다음을 통해 공유


hash_multimap::hash_multimap

참고

이 API는 사용되지 않습니다.unordered_multimap 클래스를 대신 사용하는 것이 좋습니다.

비어 있거나 모든 복사본 또는 일부 다른 hash_myultimap의 일부인 hash_multimap을 생성 합니다.

hash_multimap( );
explicit hash_multimap(
    const Compare& Comp
);
hash_multimap(
    const Compare& Comp,
    const Allocator& Al
);
hash_multimap(
    const hash_multimap& Right
);
hash_multimap(
    hash_multimap&& Right
);
hash_multimap(
    initializer_list<Type> IList
);
hash_multimap(
    initializer_list<Type> IList,
    const Compare& Comp
);

hash_multimap(
    initializer_list<Type> IList,
    const Compare& Comp,
    const Allocator& Al
);
template<class InputIterator>
    hash_multimap(
        InputIterator First,
        InputIterator Last
    );
template<class InputIterator>
    hash_multimap(
        InputIterator First,
        InputIterator Last,
        const Compare& Comp
    );
template<class InputIterator>
    hash_multimap(
        InputIterator First,
        InputIterator Last,
        const Compare& Comp,
        const Allocator& Al
    );

매개 변수

Parameter

설명

Al

저장소 할당자 클래스는 Allocator 에 설정된 hash_multimap 개체에 대해 사용됩니다.

Comp

const Traits 종류의 비교 함수는 Traits 에 디폴트로 되는 기본적으로 맵의 요소를 정렬하는데 사용됩니다.

Right

생성된 설정의 맵은 복제될 것입니다.

First

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

Last

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

IList

복사할 initializer_list 입니다.

설명

모든 생성자는 hash_multimap에 대한 메모리 저장소를 관리하는 할당자 개체의 형식을 저장하고 get_allocator 호출함으로써 나중에 호출될 수 있습니다. 할당자 매개 변수는 클래스 선언과 대체 할당자를 대체하는데 사용되는 전처리 매크로에서 종종 생략됩니다.

모든 생성자는 hash_multimap을 초기화합니다.

모든 생성자는 Traits 형식의 함수 개체를 저장합니다. 그것은 hash_multimap의 키들 사이의 순서를 설정하는데 사용되고 key_comp를 호출함으로써 나중에 반환될 수 있습니다.

처음 세 개의 생성자는 빈 초기 hash_multimap을 지정하고, 두 번째는 요소들의 순서를 설정하는데 사용되는 비교 함수 (Comp) 형식을 지정하고 세번째는 명시적으로 할당자 형식 (_Al)를 사용하기 위해 지정합니다. 키워드 explicit 는 자동 형식 변환의 특정 종류를 표시 하지 않습니다.

네 번째 생성자는 Right hash_multimap의 사본을 지정합니다.

다음 세 가지 생성자들은 맵의 범위 First, Last) 를 Traits 와 할당자의 형식을 지정할 때 증가하는 명시성과 함께 복제합니다.

여덟 번째 생성자는 hash_multimap을 Right 으로 이동합니다.

마지막 세 생성자는 initializer_list를 사용합니다.

요구 사항

헤더: <hash_map>

네임스페이스: stdext

참고 항목

참조

hash_multimap 클래스

stdext 네임스페이스

표준 템플릿 라이브러리