Alternative to boost::lexical_cast

后端 未结 7 1096
粉色の甜心
粉色の甜心 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:38

    how about using stoi(). I am sure that it must be fast enough to satisfy your needs.

提交回复
热议问题