...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Static interface marker type to use Boost.PFR reflection with positional matching.
Defined in header <boost/mysql/pfr.hpp>
template< class T> struct pfr_by_position
A marker type that satisfies the StaticRow
concept. When used within the static interface, modifies its behavior for
the marked type so that Boost.PFR is used for reflection, instead of Boost.Describe.
Field matching is performed by position, with the same algorithm used for
std::tuple
.
The underlying row type for this marker is T
,
i.e. underlying_row_t<pfr_by_position<T>>
is an alias for T
.
The type T
must be a PFR-reflectable
non-const object type.
This type is only defined if the macro BOOST_PFR_ENABLED
is defined and set to 1
.