Is there an analogue of `boost::reference_wrapper`, that can also work with rvalue references?
20 Aug
2022
20 Aug
'22
8:04 a.m.
I find an wrapper like `boost::reference_wrapper`, but with more abilities, like this: ``` int value = 0; auto rref = boost::ref(std::move(value)); auto prref = boost::ref(int{}); f(rref); // pass rref into f by ordinary reference f(std::move(rref)); // move rref into f f(std::move(prref)); // move prref into f ``` Is there such functionality on the Boost side? If not, is it allowed to discuss the possibility of contributing it?
813
Age (days ago)
813
Last active (days ago)
0 comments
1 participants
participants (1)
-
Денис Михайлов