StringMap.this

Constructs an associative array using keys and values from the builtin associative array Complexity: O(n log(n))

  1. this(typeof(null) aa)
  2. this(T[string] aa)
    struct StringMap(T, U = uint)
    @trusted pure nothrow
    this
    ()
    (
    T[string] aa
    )
    if (
    isMutable!T &&
    !__traits(hasMember, T, "opPostMove")
    &&
    __traits(isUnsigned, U)
    )
  3. this(string[] keys, T[] values)

Examples

StringMap!int map = ["key" : 1];
assert(map.findPos("key") == 0);

Meta