52 return std::strong_ordering::equal;
79 template <
typename Base >
83template <
typename Base >
85 if constexpr ( std::is_integral_v < Base > ) {
87 }
else if constexpr ( std::is_same_v < Base, std::string > ) {
88 return std::string (
"fail" );
89 }
else if constexpr ( std::is_same_v < Base, FailStateLabel > ) {
91 }
else if constexpr ( std::is_same_v < Base, object::Object > ) {
94 static_assert ( std::is_same_v < Base, Base >,
"Unsupported type of instance" );
Represents label of the fail state of an automaton.
Definition: FailStateLabel.h:36
static Base instance()
Factory for the label construction of the label based on given type.
Definition: FailStateLabel.h:84
std::strong_ordering operator<=>(const FailStateLabel &) const
Definition: FailStateLabel.h:51
FailStateLabel()
Creates a new instance of the label.
friend ext::ostream & operator<<(ext::ostream &out, const FailStateLabel &instance)
Definition: FailStateLabel.cpp:16
bool operator==(const FailStateLabel &) const
Definition: FailStateLabel.h:62
Definition: FailStateLabel.cpp:12