sorted_position

element_index_type libsemigroups::FroidurePin::sorted_position(const_reference)

Returns the position of x in the sorted array of elements of the semigroup, or libsemigroups::UNDEFINED if x is not an element of this.