noxvalue(3) | noxvalue(3) |
noxvalue - convert xvalue to prvalue
#include <cfl/utilities/noxvalue.hpp>
int i {0};
auto u = glfn (tuple) (move (i)); // tuple_c <int &&>
auto v = noxvalue (u); // tuple_c <int>
auto f = glfn (plus) (1__, move (i)); // closure_c <..., int &&>
auto g = prvalue (f); // closure_c <..., int>
Convert rvalue references to prvalues. In particular, descend into containers and convert inner values.
The name refers to “no xvalue”, and essentially corresponds to the standard CFL storage (as described in conventions(5)).
noxvalue
is not a container function.
prvalue(3), glvalue(3), glfn(3)