Function to_name¶
function to_name(Color) demo¶
inline constexpr std::string_view to_name(Color color) noexcept { … }
Converts a Color enum to its string representation.
| color | The Color enum value. |
| A string view representing the color name. | |
| Red | For Color::Red. |
| Green | For Color::Green. |
| Blue | For Color::Blue. |
| Unknown | For any invalid value. |
Fully qualified name: ns::to_name(Color)
Declared at library.hpp:138
This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.