13

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?

chris
  • 60,560
  • 13
  • 143
  • 205
user1233963
  • 1,450
  • 15
  • 41

0 Answers0