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)
  2. bool replace(V oldElement, V newElement)
    class HashSet(V, alias Hash = Container.hash, alias Reap = Container.reap, alias Heap = Container.DefaultCollect)
    final
    bool
    replace

Meta