chsvlib
chsv helper source code

◆ emplace_back()

auto emplace_back ( ElementConstructionParams &&...  params) -> std::enable_if_t<std::is_constructible<ElementType, ElementConstructionParams&&... >::value, iterator>

Constructs a new element at the back of the vector from a given set of parameters.

Template Parameters
ElementConstructionParamsTypes of the parameters which are forwarded to a constructor of the created element.
Parameters
paramsThe parameters from which the new element is constructed.
Returns
An iterator associated with the created element.