diff --git a/libs/util/include/psemek/util/span.hpp b/libs/util/include/psemek/util/span.hpp index aeb1d62d..8edaca8d 100644 --- a/libs/util/include/psemek/util/span.hpp +++ b/libs/util/include/psemek/util/span.hpp @@ -81,4 +81,16 @@ namespace psemek::util T & operator[] (size_type i) const { return p_begin[i]; } }; + template + bool operator == (span const & s1, span const & s2) + { + return (s1.begin() == s2.begin()) && (s1.end() == s2.end()); + } + + template + bool operator != (span const & s1, span const & s2) + { + return !(s1 == s2); + } + }