estdlib
estdlib copied to clipboard
inline estd::detail::function trivial mode
It may be possible to add a default template value bool to the class to indicate a request for 'trivial' mode.
This would swap out the pointer (via a union, perhaps) for a pure offset. By doing this, an entire inline estd::detail::function could be trivially copied, providing the underlying functor itself also was trivial.