StringTable.insert

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

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

Parameters

s const(char)*

the string to insert

length size_t

the length of s

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