BitsetsNET.ArrayContainer.Remove C# (CSharp) Method

Remove() public method

Remove specified short from this container. May create a new container.
public Remove ( ushort x ) : Container
x ushort Short to be removed
return Container
        public override Container Remove(ushort x)
        {
            int loc = Utility.UnsignedBinarySearch(Content, 0, Cardinality, x);
            if (loc >= 0)
            {
                // insertion
                Array.Copy(Content, loc + 1, Content, loc, Cardinality - loc - 1);
                --Cardinality;
            }
            return this;
        }

Same methods

ArrayContainer::Remove ( ushort begin, ushort end ) : Container