...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 name-based field matching.
Defined in header <boost/mysql/pfr.hpp>
template< class T> struct pfr_by_name
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 name, with the same algorithm used for Boost.Describe
structs.
The underlying row type for this marker is T
,
i.e. underlying_row_t<pfr_by_name<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_CORE_NAME_ENABLED
is defined and set to 1
(requires
C++20).