MCPcopy Create free account
hub / github.com/Naios/function2 / make_box

Function make_box

include/function2/function2.hpp:432–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

430/// Creates a box containing the given value and allocator
431template <bool IsCopyable, typename T, typename Allocator>
432auto make_box(std::integral_constant<bool, IsCopyable>, T&& value,
433 Allocator&& allocator_) {
434 return box<IsCopyable, std::decay_t<T>, std::decay_t<Allocator>>(
435 std::forward<T>(value), std::forward<Allocator>(allocator_));
436}
437
438template <typename T>
439struct is_box : std::false_type {};

Callers 1

erasureMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected