Alternative to boost::lexical_cast

后端 未结 7 1176
粉色の甜心
粉色の甜心 2020-12-30 06:27

I\'m taking a part in a challenge, and just to cut to the point, in one of places in my program I need to convert string to an integer. I\'ve tried boost::lexical_cast but u

7条回答
  •  一个人的身影
    2020-12-30 06:44

    The atoi/itoa functions are usually faster, as is sscanf().

    All these are from the c runtime, but they should work well for you.

提交回复
热议问题