From 6a6185d85a78566eaf58628075a9da9094ca1602 Mon Sep 17 00:00:00 2001 From: Alexander Hans Date: Sun, 19 Jan 2025 21:39:05 +0100 Subject: [PATCH] add comment --- exercises/practice/anagram/anagram_test.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/exercises/practice/anagram/anagram_test.cpp b/exercises/practice/anagram/anagram_test.cpp index 74cb8d8e..8093b3c2 100644 --- a/exercises/practice/anagram/anagram_test.cpp +++ b/exercises/practice/anagram/anagram_test.cpp @@ -13,6 +13,10 @@ using namespace std; // Anagram exercise test case data version 1.5.0 namespace { +// This class is a helper to support any container to be used. It takes +// an std::unordered_set of expected values and provides a method +// `is_identical_to` that checks if a given container is as expected. Since the +// method is a method template, it works for any container. class ExpectedSet { public: ExpectedSet() = default;