Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function template tie_from_structure

boost::pfr::tie_from_structure — std::tie-like function that allows assigning to tied values from aggregates.

Synopsis

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


template< Elements> 
   ( args);

Description

Example:

Returns:

an object with lvalue references to args...; on assignment of an simple aggregate value to that object each field of an aggregate is assigned to the corresponding args... reference.


PrevUpHomeNext