|
VLink
2.0.0
A high-performance communication middleware
|
Compile-time format-string wrapper carrying the expected argument list. 更多...
#include <format.h>
Public 类型 | |
| using | t = FString |
Public 成员函数 | |
| template<size_t NumT> | |
| constexpr | FString (const char(&s)[NumT]) |
| template<typename StrT , std::enable_if_t< std::is_convertible_v< const StrT &, std::string_view >, int > = 0> | |
| constexpr | FString (const StrT &s) |
| operator std::string_view () const | |
| std::string_view | get () const |
Public 属性 | |
| std::string_view | str |
Compile-time format-string wrapper carrying the expected argument list.
Wraps a std::string_view tagged with the argument types so a call site is type-checked implicitly without runtime dispatch. Constructible directly from string literals so format arguments accept "fmt" without a cast.
| ArgsT | Argument types expected by the format string (compile-time only). |
| using vlink::format::FString< ArgsT >::t = FString |
|
inlineconstexpr |
|
inlineconstexpr |
|
inline |
|
inline |
| std::string_view vlink::format::FString< ArgsT >::str |