This commit is contained in:
2026-03-22 00:52:57 -06:00
parent 17e5db78e3
commit 5a31a22441
2 changed files with 14 additions and 0 deletions

1
.gitignore vendored
View File

@@ -2,6 +2,7 @@
docs docs
Doxyfile Doxyfile
images images
*.zip
# Prerequisites # Prerequisites
*.d *.d

View File

@@ -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 <> template <>
struct std::formatter<LinkedListErr> : std::formatter<const char*> { struct std::formatter<LinkedListErr> : std::formatter<const char*> {