Is there a convenient way to wrap std::pair as a new type?

后端 未结 8 1101
梦谈多话
梦谈多话 2021-02-02 17:02

Often times I find myself using std::pair to define logical groupings of two related quantities as function arguments/return values. Some examples: row/col, tag/value, etc.

8条回答
  •  灰色年华
    2021-02-02 17:32

    Unfortunately strong typedefs will not make it into C++0x, it has been given the classification of Not ready for C++0x, but open to resubmit in future.

提交回复
热议问题