FE 0.13.1
Header-only C++ frontend library
Loading...
Searching...
No Matches
fe::Log::FmtLoc< Args > Struct Template Reference

A std::format_string that remembers where it was written. More...

#include <fe/log.h>

Inheritance diagram for fe::Log::FmtLoc< Args >:
[legend]

Public Member Functions

template<class S>
requires std::convertible_to<const S&, std::string_view>
consteval FmtLoc (const S &fmt, std::source_location loc=std::source_location::current())

Public Attributes

std::format_string< Args... > fmt
std::source_location loc

Detailed Description

template<class... Args>
struct fe::Log::FmtLoc< Args >

A std::format_string that remembers where it was written.

Definition at line 48 of file log.h.

Constructor & Destructor Documentation

◆ FmtLoc()

template<class... Args>
template<class S>
requires std::convertible_to<const S&, std::string_view>
fe::Log::FmtLoc< Args >::FmtLoc ( const S & fmt,
std::source_location loc = std::source_location::current() )
inlineconsteval

Definition at line 51 of file log.h.

Member Data Documentation

◆ fmt

template<class... Args>
std::format_string<Args...> fe::Log::FmtLoc< Args >::fmt

Definition at line 55 of file log.h.

Referenced by fe::Log::log().

◆ loc

template<class... Args>
std::source_location fe::Log::FmtLoc< Args >::loc

Definition at line 56 of file log.h.

Referenced by fe::Log::log().


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