All done
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -2,6 +2,7 @@
|
||||
docs
|
||||
Doxyfile
|
||||
images
|
||||
*.zip
|
||||
|
||||
# Prerequisites
|
||||
*.d
|
||||
|
||||
@@ -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<LinkedListErr> : std::formatter<const char*> {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user