From 5a31a224417750144998ac258ed2f0eb0069b876 Mon Sep 17 00:00:00 2001 From: LaEntropiaa Date: Sun, 22 Mar 2026 00:52:57 -0600 Subject: [PATCH] All done --- .gitignore | 1 + include/linkedlist.h | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/.gitignore b/.gitignore index 6129d0a..441dcec 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ docs Doxyfile images +*.zip # Prerequisites *.d diff --git a/include/linkedlist.h b/include/linkedlist.h index f3edeec..e7f77a9 100644 --- a/include/linkedlist.h +++ b/include/linkedlist.h @@ -86,6 +86,19 @@ enum class LinkedListErr { } } +/** + * @brief Formatter specialization for LinkedListErr. + * + * Enables formatting of LinkedListErr values with std::format and std::print + * by converting the enum to a human-readable string using to_string(). + * + * This implementation delegates formatting to the formatter for const char*, + * allowing full compatibility with standard formatting options (e.g., alignment). + * + * @note This specialization makes LinkedListErr satisfy std::formattable. + * + * @see to_string(LinkedListErr) + */ template <> struct std::formatter : std::formatter {