![]() |
libsemigroups
v3.0.0
C++ library for semigroups and monoids
|
Defined in adapters.hpp
.
Specialisations of this struct should be stateless trivially default constructible with a call operator of signature:
void operator()(Point&, Element const&, Point const&) const
(possibly noexcept
, inline
and/or constexpr
also); orPoint operator()(Element const&, Point const&) const
(possibly noexcept
, inline
and/or constexpr
also).In form (1): the call operator should change res
in-place to contain the image of the point pt
under the right action of the element x
. The purpose of the 1st parameter is to avoid repeated allocations of memory to hold temporary points that are discarded soon after they are created.
In form (2): the call operator should return the image of the point pt
under the right action of the element x
.
Element | the type of the elements of a semigroup. |
Point | the type of the points acted on. |
The third template parameter exists for SFINAE.