What does this colon do in an enum declaration?

后端 未结 2 1666
囚心锁ツ
囚心锁ツ 2021-01-08 00:34

I did a search for this question thinking that somebody must have asked it before. I did not turn up any results, so if it has been, please post the link and feel free to cl

2条回答
  •  日久生厌
    2021-01-08 01:14

    In C++0x, you can specify the underlying type for the enum. In this case, it will be size_type.

    (And it may be supported as an extension in other places prior to C++0x, obviously.)

提交回复
热议问题