WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
fstring< T > Struct Template Reference

A compile-time format string. More...

#include <fmt/base.h>

Public Types

using t = fstring
 

Public Member Functions

template<size_t N>
FMT_CONSTEVAL FMT_ALWAYS_INLINE fstring (const char(&s)[N])
 
template<typename S , FMT_ENABLE_IF(std::is_convertible< const S &, string_view >::value) >
FMT_CONSTEVAL FMT_ALWAYS_INLINE fstring (const S &s)
 
template<typename S , FMT_ENABLE_IF(std::is_base_of< detail::compile_string, S >::value && std::is_same< typename S::char_type, char >::value) >
FMT_ALWAYS_INLINE fstring (const S &)
 
 fstring (runtime_format_string<> fmt)
 
FMT_ALWAYS_INLINE operator const string_view & () const
 
auto get () const -> string_view
 

Public Attributes

string_view str
 

Detailed Description

template<typename... T>
struct fstring< T >

A compile-time format string.

Member Typedef Documentation

◆ t

template<typename... T>
using fstring< T >::t = fstring

Constructor & Destructor Documentation

◆ fstring() [1/4]

template<typename... T>
template<size_t N>
FMT_CONSTEVAL FMT_ALWAYS_INLINE fstring< T >::fstring ( const char(&) s[N])
inline

◆ fstring() [2/4]

template<typename... T>
template<typename S , FMT_ENABLE_IF(std::is_convertible< const S &, string_view >::value) >
FMT_CONSTEVAL FMT_ALWAYS_INLINE fstring< T >::fstring ( const S & s)
inline

◆ fstring() [3/4]

template<typename... T>
template<typename S , FMT_ENABLE_IF(std::is_base_of< detail::compile_string, S >::value && std::is_same< typename S::char_type, char >::value) >
FMT_ALWAYS_INLINE fstring< T >::fstring ( const S & )
inline

◆ fstring() [4/4]

template<typename... T>
fstring< T >::fstring ( runtime_format_string<> fmt)
inline

Member Function Documentation

◆ get()

template<typename... T>
auto fstring< T >::get ( ) const -> string_view
inline

◆ operator const string_view &()

template<typename... T>
FMT_ALWAYS_INLINE fstring< T >::operator const string_view & ( ) const
inline

Member Data Documentation

◆ str

template<typename... T>
string_view fstring< T >::str

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