estdlib icon indicating copy to clipboard operation
estdlib copied to clipboard

inline estd::detail::function trivial mode

Open malachib opened this issue 2 years ago • 0 comments

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.

malachib avatar Sep 13 '23 08:09 malachib