Odd C ++ Member Function Declaration Syntax: && qualifier

From Boost :: Thread :

template <typename R>
class shared_future
{
...
// move support
shared_future(shared_future && other);
shared_future(unique_future<R> && other);
shared_future& operator=(shared_future && other);
shared_future& operator=(unique_future<R> && other);
...
}

What are these double ampersands? I switched to "BS The C ++ Langauge 3d edition" and could not find any explanation.

+3
source share
1 answer

This is a C ++ 0x add-on for rvalue references.

See http://www.artima.com/cppsource/rvalue.html .

+6
source

Source: https://habr.com/ru/post/1733867/


All Articles