contains

bool libsemigroups::FroidurePin::contains(const_reference)

Returns true if x is an element of this and false if it is not.

This member function can be used to check if the element x is an element of the semigroup. The semigroup is enumerated in batches until x is found or the semigroup is fully enumerated but x was not found (see FroidurePin::batch_size).