|
Uni20
Asynchronous tensor and runtime library.
|
Compile-time string wrapper for use as a non-type template parameter. More...
#include <trace.hpp>
Public Member Functions | |
| constexpr | BaseName (const char(&str)[N]) |
| Construct from a string literal. | |
| constexpr | operator std::string_view () const |
| Convert to std::string_view (excluding null terminator). | |
Public Attributes | |
| char | value [N] |
| The wrapped string literal. | |
Compile-time string wrapper for use as a non-type template parameter.
Usage: Use as CTStr{"ClassName"} to pass a string literal as a template parameter.
| N | The length of the string literal, including the null terminator. |
|
inlineconstexpr |
Construct from a string literal.
| str | The string literal (e.g., "AsyncTask"). |
|
inlineconstexpr |
Convert to std::string_view (excluding null terminator).
| char trace::BaseName< N >::value[N] |
The wrapped string literal.