Construction a vector from the concatenation of 2 vectors

后端 未结 6 437
梦谈多话
梦谈多话 2021-01-12 22:45

Is there a way to construct a vector as the concatenation of 2 vectors (Other than creating a helper function?)

For example:



        
6条回答
  •  不思量自难忘°
    2021-01-12 23:26

    No, it's not possible if you require that

    • no helper function is defined, and
    • the resulting vector can be declared const.

提交回复
热议问题