Project one field from an immutable, borrowed aggregate row.
More...
#include <aggregate_columns.hpp>
|
| decltype(auto) | operator() (const T &row) const |
| | Borrow the selected field without copying the row.
|
template<std::size_t I, class T>
struct portals::AggregateFieldProjection< I, T >
Project one field from an immutable, borrowed aggregate row.
- Template Parameters
-
| I | Zero-based index in PFR's aggregate field order. |
| T | SimpleAggregate record supported by Boost.PFR. The result borrows the row and must be consumed during the formatter call. |
◆ operator()()
template<std::size_t I, class T>
Borrow the selected field without copying the row.
- Parameters
-
| row | Immutable 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: