HikoGUI
A low latency retained GUI
|
#include <hikogui/telemetry/delayed_format.hpp>
Public Member Functions | |
delayed_format (delayed_format &&) noexcept=default | |
delayed_format (delayed_format const &) noexcept=default | |
delayed_format & | operator= (delayed_format &&) noexcept=default |
delayed_format & | operator= (delayed_format const &) noexcept=default |
template<typename... Args> | |
delayed_format (Args const &...args) noexcept | |
Construct a delayed format. | |
std::string | operator() () const noexcept |
Format now. | |
std::string | operator() (std::locale const &loc) const noexcept |
Format now. | |
Delayed formatting.
This class will capture all the arguments so that it may be passed to another thread. Then call the function operator to do the actual formatting.
|
inlinenoexcept |
Construct a delayed format.
All arguments are passed by forwarding-references so that values can be moved into the storage of the delayed_format.
Arguments passed by reference will be copied. Arguments passed by std::string_view or std::span will be copied into a std::string or std::vector.
Literal strings will not be copied, instead a pointer is taken.
args | The parameters to std::format, including the fmt paramater, but excluding the locale. |
|
inlinenoexcept |
Format now.
|
inlinenoexcept |
Format now.
loc | The locale to use for formatting. |