Records

Functions

  • template <typename R>
    bool Overlap (const R & x, const R & y)

    Returns true if two extents overlap.

    Defined at line 155 of file ../../zircon/system/ulib/range/include/range/range.h

  • template <typename R>
    bool Adjacent (const R & x, const R & y)

    Returns true if two extents are adjacent. Two ranges are considered adjacent

    if one range starts right after another ends i.e. [a, b) [b, c] are

    adjacent ranges where a

    <

    b

    <

    c.

    Defined at line 170 of file ../../zircon/system/ulib/range/include/range/range.h

  • template <typename R>
    bool Mergable (const R & x, const R & y)

    Two ranges are mergable is they either overlap or are adjacent.

    Defined at line 187 of file ../../zircon/system/ulib/range/include/range/range.h

  • template <typename R>
    bool Contains (const R & xconst R & y)

    Returns true if |x| contains |y|.

    Ex.

    ASSERT_TRUE(Contains(Range(1, 10). Range(4, 8)));

    ASSERT_TRUE(Contains(Range(1, 10). Range(1, 10)));

    ASSERT_FALSE(Contains(Range(4, 8). Range(1, 10)));

    ASSERT_FALSE(Contains(Range(1, 10). Range(5, 11)));

    ASSERT_FALSE(Contains(Range(4, 8). Range(1, 5)));

    Defined at line 199 of file ../../zircon/system/ulib/range/include/range/range.h