folly::operator>

Greater-than operators

Synopses

Declared in <folly/memory/not_null.h>

Orders a std::basic_string after an fbstring.

template<
    typename E,
    class T,
    class A,
    class S,
    class A2>
bool
operator>(
    std::basic_string<E, T, A2> const& lhs,
    basic_fbstring<E, T, A, S> const& rhs);
» more...

Orders two Poly objects.

template<
    class I1,
    class I2>
requires detail::Orderable<I1, I2>::value
bool
operator>(
    Poly<I1> const& _this,
    Poly<I2> const& that);
» more...

Greater-than comparison forwarding to the underlying pointer.

template<
    typename PtrT,
    typename T,
    typename RhsNullHandlerT>
bool
operator>(
    T const& lhs,
    not_null<PtrT, RhsNullHandlerT> const& rhs);
» more...

Greater-than comparison forwarding to the underlying pointer.

template<
    typename PtrT,
    typename T,
    typename LhsNullHandlerT>
bool
operator>(
    not_null<PtrT, LhsNullHandlerT> const& lhs,
    T const& rhs);
» more...

Greater-than comparison.

bool
operator>(
    dynamic const& a,
    dynamic const& b);
» more...

Compares two tapes lexicographically.

bool
operator>(
    tape const& x,
    tape const& y);
» more...

Order two iterators by position.

bool
operator>(
    down const lhs,
    down const rhs) noexcept;
» more...

Returns true if x is ordered after y.

constexpr
bool
operator>(
    index_iterator const& x,
    index_iterator const& y);
» more...

operator> through conversion for Range<const char*>

template<
    class T,
    class U>
bool
operator>(
    T const& lhs,
    U const& rhs)
requires detail::ComparableAsStringPiece<T, U>::value;
» more...

Test whether one range is lexicographically greater than another.

template<class Iter>
bool
operator>(
    Range<Iter> const& lhs,
    Range<Iter> const& rhs);
» more...

Orders two Optionals; an empty Optional sorts before any value.

template<
    class U,
    class V>
constexpr
bool
operator>(
    Optional<U> const& a,
    Optional<V> const& b);
» more...

Orders an fbstring after a std::basic_string.

template<
    typename E,
    class T,
    class A,
    class S,
    class A2>
bool
operator>(
    basic_fbstring<E, T, A, S> const& lhs,
    std::basic_string<E, T, A2> const& rhs);
» more...

Orders two views lexicographically.

bool
operator>(
    self lhs,
    self rhs) noexcept;
» more...

Deleted: comparing a bare value with an Expected is not allowed.

template<
    class Value,
    class Error>
bool
operator>(
    Value const& other,
    Expected<Value, Error> const& exp) = delete;
» more...

Deleted: comparing an Expected with a bare value is not allowed.

template<
    class Value,
    class Error>
bool
operator>(
    Expected<Value, Error> const& exp,
    Value const& other) = delete;
» more...

Orders two Expected values.

template<
    class Value,
    class Error,
    bool FollyRequires1954 = false>
bool
operator>(
    Expected<Value, Error> const& lhs,
    Expected<Value, Error> const& rhs);
» more...

Orders None against an Optional; None never sorts after a value.

template<class V>
constexpr
bool
operator>(
    None none,
    Optional<V> const& a) noexcept;
» more...

Orders an Optional against None; a value sorts after None.

template<class V>
constexpr
bool
operator>(
    Optional<V> const& a,
    None none) noexcept;
» more...

Deleted to forbid ordering a bare value against an Optional.

template<class V>
bool
operator>(
    V const& other,
    Optional<V> const& a) = delete;
» more...

Deleted to forbid ordering an Optional against a bare value.

template<class V>
bool
operator>(
    Optional<V> const& a,
    V const& other) = delete;
» more...

Return Value

  • true if lhs is lexicographically greater than rhs.
  • true if _this orders after that.
  • True if a orders after b.
  • true if x is greater than y.
  • true if lhs follows rhs.
  • True if x follows y.
  • True if lhs is greater than rhs as StringPiece.
  • True if lhs is greater than rhs.
  • true if a orders after b.
  • True if lhs compares greater than rhs.
  • Never returns; this overload is deleted.
  • true if lhs orders after rhs.
  • false always.
  • true if a has a value.

Parameters

NameDescription
lhsThe left-hand standard string.
rhsThe right-hand fbstring.
_thisThe left-hand operand.
thatThe right-hand operand.
aThe left-hand dynamic.
bThe right-hand dynamic.
xThe left-hand tape.
yThe right-hand tape.
otherThe value operand.
expThe Expected operand.
noneThe None tag.