Core LibraryalphaAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

struct libtmux-cxx latest

formatter<libtmux::CommandFailure>

Formatting a failure is how it reaches a log line, so the type every call can return knows how to write itself.

Source and package
Qualified name
std::formatter<libtmux::CommandFailure>
Namespace
std
Package
libtmux-cxx
Source
include/libtmux/command.hpp
struct std::formatter<libtmux::CommandFailure>

Description#

Inheriting the string formatter keeps fill, alignment and width working, so {:>40} pads a failure exactly as it pads its text. __cpp_lib_format is deliberately not tested here: libc++ 18 leaves it undefined while std::format works, so guarding on it would drop this from the clang lane and keep it on the GCC one.

Members1#

Esc

Type to search.

Reference previewOpen reference