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

前端 未结 7 550
轻奢々
轻奢々 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'

提交回复
热议问题