HashMap.fetch

fetch is safe(do not return pointer) and nogc (do not throw exception) variant of "in" but retuns tuple("ok", "value"). You can check if result.ok == true. It this case you'll find value in "value"

  1. auto fetch(K k)
    struct HashMap(K, V, Allocator = Mallocator, bool GCRangesAllowed = true)
    fetch
    (
    K
    )
    (
    K k
    )
  2. auto fetch(K k)

Meta