How to “concatenate” boost::mpl::vectors

前端 未结 3 900
误落风尘
误落风尘 2021-01-17 21:48

I have to different vectors

mpl::vector
mpl::vector

I\'d like to \"concatenate\" them to for

3条回答
  •  日久生厌
    2021-01-17 22:35

    Like this:

    // include the appropriate headers
    typedef mpl::vector first_type;
    typedef mpl::vector second_type;
    typedef mpl::copy >::type concat_type;
    

提交回复
热议问题