Is there an equivalent of Python's `pass` in c++ std11?

前端 未结 7 548
轻奢々
轻奢々 2021-01-01 10:26

I want a statement that does nothing but can be used in places requiring a statement. Pass: http://docs.python.org/release/2.5.2/ref/pass.html

Edit: Just saw: How do

相关标签:
7条回答
  • 2021-01-01 10:48

    I think in C++ just an empty line (;) will be the equivalent of 'pass'

    0 讨论(0)
提交回复
热议问题