diff --git a/library.json b/library.json index 29ec5fb..e59533b 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "ArrayUtils", - "version": "1.2.1", + "version": "1.2.2", "description": "Helps to create complex arrays and maps as arrays of pairs", "keywords": "array, map, pair", "repository": diff --git a/library.properties b/library.properties index 980efbd..17007cd 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=vovagorodok_ArrayUtils -version=1.2.1 +version=1.2.2 author=vovagorodok maintainer=vovagorodok sentence=Helps to create complex arrays and maps as arrays of pairs diff --git a/src/SmallMap.h b/src/SmallMap.h index 4af89fb..2de4284 100644 --- a/src/SmallMap.h +++ b/src/SmallMap.h @@ -58,6 +58,9 @@ class SmallMap return search->first; return std::nullopt; } + bool operator==(const SmallMap& other) const { + return _arr == other._arr; + } private: std::array, N> _arr;