isAligned

Aligns n up or down.

Preconditions: alignment must be power of 2.

  1. bool isAligned(size_t alignment, size_t n)
    @safe pure nothrow @nogc
    bool
    isAligned
    (
    in size_t alignment
    ,
    in size_t n
    )
  2. bool isAligned(size_t n)

Meta