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

Class capacity_can_hold

include/function2/function2.hpp:1741–1744  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1739/// the given object without allocating memory for an applied type erasure.
1740template <typename T>
1741struct capacity_can_hold {
1742 static constexpr std::size_t capacity = sizeof(T);
1743 static constexpr std::size_t alignment = alignof(T);
1744};
1745
1746/// An adaptable function wrapper base for arbitrary functional types.
1747///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected