boost::mpl::vector - getting to a type's base-offset

前端 未结 2 720
既然无缘
既然无缘 2021-01-13 22:41

Is it possible to get at the offset of a mpl::vector after performing a mpl::find on it ?

Put differently I want to do the

2条回答
  •  猫巷女王i
    2021-01-13 23:21

    Their is a metafunction in the itterator category to do just this, it is called distance.

    p.s., apologies for answering my own question so quickly. I just stumbled on the solution.

提交回复
热议问题