Owning single-value formatter for the existing table callback contract.
More...
#include <text_format.hpp>
template<class T>
class portals::CellFormat< T >
Owning single-value formatter for the existing table callback contract.
- Template Parameters
-
| T | Standard-formattable field type, borrowed as const T & during invocation. The format string and policy are owned. Direct calls propagate formatting/allocation exceptions and bad_expected_access<TextError>; table preparation retains its existing CALLBACK_FAILED translation. Use formatText for explicit TextError handling instead. |
◆ CellFormat()
- Parameters
-
| pattern | Format specification checked at compile time for const T &. |
| policy | Captured display policy, which must match the receiving table. |
◆ operator()()
- Parameters
-
| value | Field borrowed for this synchronous invocation; never retained. |
- Returns
- Independent formatted and validated text.
- Exceptions
-
| std::bad_expected_access<TextError> | If formatted bytes fail text validation. |
| std::format_error | If a custom standard formatter fails. |
| std::bad_alloc | If formatting or text allocation fails. |
The documentation for this class was generated from the following file: