Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::ColumnFormatter Concept Reference

A copyable formatter returning exactly owning GraphemeText for a projection result. More...

#include <table_column.hpp>

Concept definition

template<class T, class Projection, class Formatter>
concept ColumnFormatter =
ColumnProjection<T, Projection> && std::is_object_v<Formatter> && std::copy_constructible<Formatter> &&
requires(Projection &projection, Formatter &formatter, const T &row) {
{ std::invoke(formatter, std::invoke(projection, row)) } -> std::same_as<GraphemeText>;
}
A copyable formatter returning exactly owning GraphemeText for a projection result.
Definition table_column.hpp:58
An owning copyable callable that projects a borrowed immutable row.
Definition table_column.hpp:48

Detailed Description

A copyable formatter returning exactly owning GraphemeText for a projection result.

Template Parameters
TImmutable domain record type accepted by the projection.
ProjectionObject satisfying ColumnProjection; its result keeps its value category.
FormatterCopy-constructible object invocable as an lvalue with that result. The result must be GraphemeText by value, not a reference or a convertible text type.