MCPcopy Create free account
hub / github.com/p-ranav/tabulate / emplace

Function emplace

include/tabulate/optional_lite.hpp:672–674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

670 void construct_value(value_type &&v) { ::new (value_ptr()) value_type(std::move(v)); }
671
672 template <class... Args> void emplace(Args &&... args) {
673 ::new (value_ptr()) value_type(std::forward<Args>(args)...);
674 }
675
676 template <class U, class... Args> void emplace(std::initializer_list<U> il, Args &&... args) {
677 ::new (value_ptr()) value_type(il, std::forward<Args>(args)...);

Callers

nothing calls this directly

Calls 1

value_ptrFunction · 0.70

Tested by

no test coverage detected