VLink 2.0.0
A high-performance communication middleware
Loading...
Searching...
No Matches
vlink::format::FString< T > Struct Template Reference

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

#include <format.h>

Collaboration diagram for vlink::format::FString< T >:

Public Types

using t = FString

Public Member Functions

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 Attributes

std::string_view str

Detailed Description

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.

Template Parameters
TArgument types (unused at runtime but encode the expected argument list).

Member Typedef Documentation

◆ t

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

Constructor & Destructor Documentation

◆ 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

Member Function Documentation

◆ 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

Member Data Documentation

◆ str

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

The documentation for this struct was generated from the following file: