Implement sequence matcher and parser magic

This commit is contained in:
Jan
2021-02-13 00:12:26 +01:00
parent fe1f391bcc
commit 0f70f9586c
48 changed files with 1061 additions and 141 deletions

View File

@ -16,4 +16,22 @@
#else
#define _NODISCARD
#endif
#endif
#endif
template <class T>
struct Movable
{
mutable T m_val;
// ReSharper disable once CppNonExplicitConversionOperator
operator T() const &&
{
return std::move(m_val);
}
// ReSharper disable once CppNonExplicitConvertingConstructor
Movable(T&& in)
: m_val(std::move(in))
{
}
};