This page contains documentation related to safely constructing a Konieczny instance.
Functions | |
| template<template< typename... > typename Thing, typename Container, typename Traits = KoniecznyTraits<typename Container::value_type>> | |
| std::enable_if_t< std::is_same_v< Konieczny< typename Container::value_type, Traits >, Thing< typename Container::value_type, Traits > >, Konieczny< typename Container::value_type, Traits > > | make (Container const &gens) |
| Safely construct from generators. | |
| template<template< typename... > typename Thing, typename Element, typename Traits = KoniecznyTraits<Element>> | |
| std::enable_if_t< std::is_same_v< Konieczny< Element, Traits >, Thing< Element, Traits > >, Konieczny< Element, Traits > > | make (std::initializer_list< Element > const &gens) |
| Safely construct from generators. | |
|
nodiscard |
Despite the hideous signature, this function should be invoked as follows:
This function constructs a Konieczny instance generated by the specified container of generators. There can be duplicate generators and although they do not count as distinct elements, they do count as distinct generators. In other words, the generators are precisely (a copy of) gens in the same order they occur in gens.
| Thing | for SFINAE, must be Konieczny. |
| Container | the type of the argument gens. |
| Traits | the traits type for the Konieczny being constructed (defaults to KoniecznyTraits<typename Container::value_type>). |
| gens | the generators. |
| LibsemigroupsException | if any of the following hold: |
|
nodiscard |
Despite the hideous signature, this function should be invoked as follows:
This function constructs a Konieczny instance generated by the specified container of generators. There can be duplicate generators and although they do not count as distinct elements, they do count as distinct generators. In other words, the generators are precisely (a copy of) gens in the same order they occur in gens.
| Thing | for SFINAE, must be Konieczny. |
| Element | the type of the elements in the Konieczny. |
| Traits | the traits type for the Konieczny being constructed (defaults to KoniecznyTraits<Element>). |
| gens | the generators. |
| LibsemigroupsException | if any of the following hold: |