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
  • 58,138
  • 13
  • 137
  • 194
user1233963
  • 1,400
  • 14
  • 38

0 Answers0