Why write `!!x`, when `x` will do?

后端 未结 0 616
长情又很酷
长情又很酷 2020-12-07 00:23

I often see experienced programmers write !!x, even though the expected expression is a boolean and not an integer.

For example, a line from boost

相关标签:
回答
  • 消灭零回复
提交回复
热议问题