class message
Declaration
class message { /* full declaration omitted */ };Description
Optimizes the formatting for prepending and/or appending strings to the original message
It keeps all the modified message in one string. Useful if some formatter needs to access the whole string at once. reserve() - the size that is reserved for prepending (similar to string::reserve function) Note : as strings are prepended, reserve() shrinks.
Declared at: libs/pika/logging/include/pika/logging/message.hpp:44
Method Overview
- public bool empty() const
- public template <typename... Args>pika::util::logging::message & format(std::string_view format_str, const Args &... args) noexcept
- public const std::string & full_string() const
- public message()
- public message(std::stringstream msg)
- public message(pika::util::logging::message && other) noexcept
Methods
bool empty() const
bool empty() constDeclared at: libs/pika/logging/include/pika/logging/message.hpp:112
template <typename... Args>
pika::util::logging::message& format(
std::string_view format_str,
const Args&... args) noexcept
template <typename... Args>
pika::util::logging::message& format(
std::string_view format_str,
const Args&... args) noexceptDeclared at: libs/pika/logging/include/pika/logging/message.hpp:91
Parameters
- std::string_view format_str
- const Args&... args
const std::string& full_string() const
const std::string& full_string() constDescription
returns the full string
Declared at: libs/pika/logging/include/pika/logging/message.hpp:102
message()
message()Declared at: libs/pika/logging/include/pika/logging/message.hpp:47
message(std::stringstream msg)
message(std::stringstream msg)Declared at: libs/pika/logging/include/pika/logging/message.hpp:55
Parameters
- std::stringstream msg
- - the message that is originally cached
message(
pika::util::logging::message&& other) noexcept
message(
pika::util::logging::message&& other) noexceptDeclared at: libs/pika/logging/include/pika/logging/message.hpp:68
Parameters
- pika::util::logging::message&& other