Constructors

Synopses

Declared in <llvm/ADT/StringMap.h>

Construct an empty map with the default allocator.

Deep‐copy construct from RHS.

StringMap(StringMap const& RHS);

Move‐construct, taking ownership of RHS's table and allocator.

Construct an empty map that uses allocator A.

explicit
StringMap(AllocatorTy A);

Construct an empty map with roughly InitialSize buckets.

explicit
StringMap(unsigned int InitialSize);

Construct from an initializer list of key/value pairs.

StringMap(std::initializer_list<std::pair<StringRef, ValueTy>> List);

Construct with InitialSize buckets and allocator A.

StringMap(
    unsigned int InitialSize,
    AllocatorTy A);

Parameters

Name

Description

RHS

Map whose entries are copied.

A

Allocator to store and use for entries.

InitialSize

Approximate initial bucket count.

List

Initial key/value pairs to insert.

Created with MrDocs