What is the fastest way to convert int to char* string in C++?

Правка en1, от pulkitjain, 2019-12-18 19:39:26

Hi All,

I am trying to find the fastest way to convert integer directly to char* (C-string) without converting it to std::string first. I have already tried using std::to_string() function but then also i need to convert it into C-string using c_str() function. Basically an alternative for itoa in c++ for version 11 and more.

Please feel free to give your views regarding this.

Thanks and Regards
Pulkit Jain

Теги c++, strings

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский pulkitjain 2019-12-18 20:28:00 9 Tiny change: 'rsion 11** and more.\n\nPleas' -> 'rsion 11**.\n\nPleas'
en1 Английский pulkitjain 2019-12-18 19:39:26 518 Initial revision (published)