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

Project one field from an immutable, borrowed aggregate row. More...

#include <aggregate_columns.hpp>

Public Member Functions

decltype(auto) operator() (const T &row) const
 Borrow the selected field without copying the row.

Detailed Description

template<std::size_t I, class T>
struct portals::AggregateFieldProjection< I, T >

Project one field from an immutable, borrowed aggregate row.

Template Parameters
IZero-based index in PFR's aggregate field order.
TSimpleAggregate record supported by Boost.PFR. The result borrows the row and must be consumed during the formatter call.

Member Function Documentation

◆ operator()()

template<std::size_t I, class T>
decltype(auto) portals::AggregateFieldProjection< I, T >::operator() ( const T & row) const
inline

Borrow the selected field without copying the row.

Parameters
rowImmutable record that must outlive the formatter invocation.
Returns
Reference to field I in row.

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