Previous section   Next section

Imperfect C++ Practical Solutions for Real-Life Programming
By Matthew Wilson
Table of Contents
Chapter 31.  Return Value Lifetime


31.10. Potential Applications

The conversion functions described here could be well employed in the implementation of serialization libraries, since they convert much quicker than sprintf() for single variables. Furthermore, they are also useful in any situation where a function needs a pointer to char containing the (decimal) string form of an integer (e.g., when setting the text of a window in a UI). They do not conduct any kind of locale-sensitive conversion, such as the use of a comma as a thousands separator, but where plain conversion is needed, they represent a win that is hard to ignore.


      Previous section   Next section