StringTable.insert

Inserts the given string and the given associated value into the string table.

  1. StringValue!(T)* insert(const(char)[] str, T value)
    struct StringTable(T)
    nothrow pure
    insert
    (
    scope const(char)[] str
    ,)
  2. StringValue!(T)* insert(const(char)* s, size_t length, T value)

Parameters

str const(char)[]

the string to insert

value T

the value to associate with the inserted string

Return Value

Type: StringValue!(T)*

the newly inserted value, or null if the string table already contains the string

Meta