Vector.shrink

Shrink to fit the new length given. Returns if shrunk. Cannot be made @safe due to reallocation causing pointers to dangle.

  1. bool shrink()
  2. bool shrink(long newLength)
    struct Vector(E, Allocator = typeof(theAllocator))
    scope
    static if(isElementMutable)
    bool
    shrink
    ()
    if (
    isAllocator!Allocator
    )

Meta