lppl  v2.0.0

◆ extract()

template<typename Out , typename... In>
node_t<Out> extract ( record_t< In... > &  r_in,
std::string  address 
)

Creates a bare node of type node_t<Out> from a record of nearly arbitrary type.

The node in the input record at the specified address must have a value type equal to the value type generated by Out.

Template Parameters
Outthe underlying distribution in the output node
Inthe collection of distributions by which the input record is parameterized
Parameters
r_inthe input record
addressthe address in the input record to access
Returns
node_t<Out> the created bare node