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
Type: const(char)*

the string to insert

length
Type: size_t

the length of s

value
Type: 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