folly::Range::compare

Lexicographically compare this range with another.

Synopsis

Declared in <folly/Range.h>

int
compare(const_range_type const& o) const;

Return Value

A negative, zero, or positive value if this range is less than, equal to, or greater than o.

Parameters

NameDescription
oThe range to compare against.