I came across this piece of code recently
T operator () () &
{
...
}
T operator () () &&
{
...
}
and I'm confused. What do the & and && mean in this context? Is this similar to a copy & move constructor but for functions?
I came across this piece of code recently
T operator () () &
{
...
}
T operator () () &&
{
...
}
and I'm confused. What do the & and && mean in this context? Is this similar to a copy & move constructor but for functions?