StaticBitArray.canFindIndexOf

Find index (starting at currIx) of first bit that equals value.

  1. bool canFindIndexOf(bool value, Mod!(capacity, ModUInt) currIx, Mod!(capacity, ModUInt) nextIx)
    struct StaticBitArray(uint capacity, Block = DefaultBlock)
    @safe const
    static if(capacity >= 1)
    bool
    canFindIndexOf
    (
    ModUInt
    )
    (
    bool value
    ,
    Mod!(capacity, ModUInt) currIx
    ,
    out Mod!(capacity, ModUInt) nextIx
    )
    if (
    isUnsigned!ModUInt
    )
    if (
    isUnsigned!DefaultBlock
    )
  2. bool canFindIndexOf(bool value, UInt currIx, UInt nextIx)

Return Value

Type: bool

true if index was found (hit index is put into nextIx), false otherwise.

TODO: block-optimize for large BitSets

Meta