MCPcopy Create free account
hub / github.com/ThePhD/sol2 / emplace

Function emplace

include/sol/optional_implementation.hpp:1291–1295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1289 /// \synopsis template <class U, class... Args> \n T& emplace(std::initializer_list<U> il, Args &&... args);
1290 template <class U, class... Args>
1291 detail::enable_if_t<std::is_constructible<T, std::initializer_list<U>&, Args&&...>::value, T&> emplace(std::initializer_list<U> il, Args&&... args) {
1292 *this = nullopt;
1293 this->construct(il, std::forward<Args>(args)...);
1294 return value();
1295 }
1296
1297 /// Swaps this optional with the other.
1298 ///

Callers

nothing calls this directly

Calls 1

constructMethod · 0.45

Tested by

no test coverage detected