TachyonUI 1.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::Diagnostics::LogTemplate Struct Reference

A message template, with a {} per argument. More...

#include <gui_core/diagnostics/gui_logging.h>

Public Member Functions

template<size_t N>
consteval LogTemplate (const char(&chars)[N])

Public Attributes

std::string_view text

Detailed Description

A message template, with a {} per argument.

Records keep a view of it, so it must live as long as the program: only a character array that is a constant expression builds one, a string literal most often. Text made at run time goes in as a {} argument, which is copied into the record.

Constructor & Destructor Documentation

◆ LogTemplate()

template<size_t N>
tachyon::Diagnostics::LogTemplate::LogTemplate ( const char(&) chars[N])
inlineconsteval

Member Data Documentation

◆ text

std::string_view tachyon::Diagnostics::LogTemplate::text

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