lexicographical_compare (pointers)

template<typename T>
bool libsemigroups::lexicographical_compare(T *const x, T *const y)

Compare two objects via their pointers using [lexicographical_compare].

Defined in order.hpp.

Possible Implementation

lexicographical_compare(
  x->cbegin(), x->cend(), y->cbegin(), y->cend());

Template Parameters

T – the type of the objects to be compared.

Parameters
  • x – pointer to the first object for comparison

  • y – pointer to the second object for comparison

Returns

A bool.