Cast vector to vector

后端 未结 5 2104
-上瘾入骨i
-上瘾入骨i 2020-11-30 08:31

I have a member variable of type vector (where is T is a custom class, but it could be int as well.) I have a function from which I want to return a po

5条回答
  •  南笙
    南笙 (楼主)
    2020-11-30 09:03

    In addition to James's answer about how to do it you should note that const int is not a valid type to put into any standard container since it is not assignable.

提交回复
热议问题