Skip to main content

What are the main purposes of using std::forward and which problems does it solvessolve?

edited title
Link
TonySalimi
  • 8.5k
  • 4
  • 39
  • 69

Advantages What are the main purposes of using forwardstd::forward and which problems it solves?

edited tags
Link
sbi
  • 225k
  • 46
  • 267
  • 447
Notice removed Reward existing answer by Nicol Bolas
Bounty Ended with GManNickG's answer chosen by Nicol Bolas
added 8 characters in body; edited tags
Source Link
Xeo
  • 132.3k
  • 55
  • 299
  • 406
Loading
Notice added Reward existing answer by Nicol Bolas
Bounty Started worth 100 reputation by Nicol Bolas
edited body
Source Link
Daniel Trebbien
  • 39.5k
  • 18
  • 131
  • 197
Loading
edited tags
Link
GManNickG
  • 506.1k
  • 55
  • 505
  • 551
Loading
added 21 characters in body; edited tags
Source Link
GManNickG
  • 506.1k
  • 55
  • 505
  • 551
Loading
edited tags
Link
kennytm
  • 526k
  • 110
  • 1.1k
  • 1k
Loading
added 30 characters in body
Source Link
Steveng
  • 6.1k
  • 4
  • 19
  • 7
Loading
added 10 characters in body
Source Link
Kirill V. Lyadvinsky
  • 100.2k
  • 25
  • 146
  • 215
Loading
Source Link
Steveng
  • 6.1k
  • 4
  • 19
  • 7
Loading