MCPcopy Create free account
hub / github.com/David-Haim/concurrencpp / build_allocated

Method build_allocated

include/concurrencpp/task.h:117–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115
116 template<class passed_callable_type>
117 static void build_allocated(void* dst, passed_callable_type&& callable) {
118 auto new_ptr = new callable_type(std::forward<passed_callable_type>(callable));
119 new (dst) callable_type*(new_ptr);
120 }
121
122 public:
123 static constexpr bool is_inlinable() noexcept {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected