Create a StringMapEntry for the specified key construct the value using InitiVals.

Synopsis

Declared in <llvm/ADT/StringMapEntry.h>

template<
    typename AllocatorTy,
    typename... InitTy>
static
StringMapEntry*
create(
    StringRef key,
    AllocatorTy& allocator,
    InitTy&&... initVals);

Return Value

Pointer to the newly allocated and constructed entry.

Parameters

Name

Description

key

Key string stored after the entry.

allocator

Allocator that provides the storage.

initVals

Arguments forwarded to construct the mapped value.

Created with MrDocs