This page contains documentation related to safely constructing a Perm instance.
Functions | |
| template<typename Return, typename OtherContainer> | |
| std::enable_if_t< IsPerm< Return >, Return > | make (OtherContainer &&cont) |
| Construct from universal reference container and check. | |
| template<typename Return> | |
| std::enable_if_t< IsPerm< Return >, Return > | make (std::initializer_list< typename Return::point_type > cont) |
| Construct from universal reference container and check. | |
|
nodiscard |
Constructs a Perm initialized using the container cont as follows: the image of the point i under the permutation is the value in position i of the container cont.
| Return | the return type. Must satisfy IsPerm<Return>. |
| OtherContainer | universal reference for the type of the container. |
| cont | the container. |
N.| LibsemigroupsException | if any of the following hold:
|
cont.
|
nodiscard |
Constructs a Perm initialized using the container cont as follows: the image of the point i under the permutation is the value in position i of the container cont.
| Return | the return type. Must satisfy IsPerm<Return>. |
| cont | the container. |
N.| LibsemigroupsException | if any of the following hold:
|
cont.