VLink 2.0.0
A high-performance communication middleware
载入中...
搜索中...
未找到
vlink::format::FString< T > 模板结构体 参考

Compile-time format string wrapper that carries type information about arguments. 更多...

#include <format.h>

vlink::format::FString< T > 的协作图:

Public 类型

using t = FString

Public 成员函数

template<size_t N>
constexpr FString (const char(&s)[N])
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

详细描述

template<typename... T>
struct vlink::format::FString< T >

Compile-time format string wrapper that carries type information about arguments.

Acts as a thin std::string_view wrapper tagged with the argument type list. This enables type-safe format_to_n / format_to calls without dynamic dispatch.

模板参数
TArgument types (unused at runtime but encode the expected argument list).

成员类型定义说明

◆ t

template<typename... T>
using vlink::format::FString< T >::t = FString

构造及析构函数说明

◆ FString() [1/2]

template<typename... T>
template<size_t N>
vlink::format::FString< T >::FString ( const char(&) s[N])
inlineconstexpr

◆ FString() [2/2]

template<typename... T>
template<typename StrT, std::enable_if_t< std::is_convertible_v< const StrT &, std::string_view >, int > = 0>
vlink::format::FString< T >::FString ( const StrT & s)
inlineconstexpr

成员函数说明

◆ get()

template<typename... T>
std::string_view vlink::format::FString< T >::get ( ) const
inline

◆ operator std::string_view()

template<typename... T>
vlink::format::FString< T >::operator std::string_view ( ) const
inline

类成员变量说明

◆ str

template<typename... T>
std::string_view vlink::format::FString< T >::str

该结构体的文档由以下文件生成: