Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function template get

boost::pfr::get — Returns reference or const reference to a field with index I in simple aggregate val. Overload taking the type U returns reference or const reference to a field with provided type U in simple aggregate val if there's only one field of such type in val.

Synopsis

// In header: <boost/pfr/core.hpp>


template< I, typename T> 
   ( val);

Description

Example:


PrevUpHomeNext