chsvlib
chsv helper source code

◆ emplace()

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

Constructs a new element before a position specified by an iterator.

Template Parameters
ElementConstructionParamsTypes of the parameters which are forwarded to a constructor of the created element.
Parameters
itWhereAn iterator associated with a (pseudo-) element before which the insertion of the new element should take place.
paramsThe parameters from which the new element is constructed.
Returns
An iterator associated with the created element.