Quantcast
Channel: User HolyBlackCat - Stack Overflow
Viewing all articles
Browse latest Browse all 1342

Comment by HolyBlackCat on Does the C++ standard library have function types that are non-copy-constructible?

$
0
0
There are std::function_ref (or std::move_only_function) that can be used instead of std::function to accept non-copyable types. But those are fairly new, C++26 and C++23 respectively.

Viewing all articles
Browse latest Browse all 1342

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>