From 6f1bbeb72c03f205cc8d8714908af16129aa2bf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?W=C5=82odzimierz=20Ciesielski?= Date: Sat, 10 Aug 2024 19:33:34 +0200 Subject: [PATCH] Added SmallMap::operator== --- library.json | 2 +- library.properties | 2 +- src/SmallMap.h | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) 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;