CongruenceByPairsHelper(congruence_type, T const&)

template<typename T>
libsemigroups::CongruenceByPairsHelper::CongruenceByPairsHelper(congruence_type type, T const &S)

Construct a CongruenceByPairsHelper over the FroidurePin instance fp representing a left/right/2-sided congruence according to type.

Complexity

Constant.

Warning

The parameter T& S is copied, this might be expensive, use a std::shared_ptr to avoid the copy!

Template Parameters
Parameters
  • type: whether the congruence is left, right, or 2-sided

  • S: a reference to the semigroup over which the congruence is defined.

Exceptions
  • LibsemigroupsException: if type and the template parameter T are incompatible. Currently, this is when type is not congruence_type::right and T::element_type is TCE.