Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::TableColumnSpec< T > Struct Template Reference

Owning column recipe whose identity is assigned by tableColumns. More...

#include <table_column.hpp>

Public Attributes

std::string header
 Owning UTF-8 caption, validated when the schema is assembled.
std::int32_t width {1}
 Width in terminal cells, validated by table preparation.
std::function< GraphemeText(const T &)> format
 Owning callback; reference captures remain borrowed.
std::function< std::function< GraphemeText(const T &)>(WidthPolicy)> prepareFormat
 Optional cold default formatter factory; each assembly owns its independent width policy.

Detailed Description

template<class T>
struct portals::TableColumnSpec< T >

Owning column recipe whose identity is assigned by tableColumns.

Template Parameters
TImmutable record borrowed by the formatter; never copied by the recipe. Use for a fixed schema. Assemble once, then retain/reorder the returned columns; rebuilding recipes in a different order creates a different positional schema.

The documentation for this struct was generated from the following file: