noxvalue(3) noxvalue(3)

NAME

noxvalue - convert xvalue to prvalue

SYNOPSIS

#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>

DESCRIPTION

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)).

STANDARDS

noxvalue is not a container function.

SEE ALSO

prvalue(3), glvalue(3), glfn(3)