HashSet.replace

Replace the first instance of oldElement with newElement. Returns true if oldElement was found and replaced, false otherwise.

  1. size_t replace(V oldElement, V newElement, bool all)
    class HashSet(V, alias Hash = Container.hash, alias Reap = Container.reap, alias Heap = Container.DefaultCollect)
    final
    size_t
    replace
  2. bool replace(V oldElement, V newElement)

Meta