DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

(autosprintf.info.gz) Class autosprintf

Info Catalog (autosprintf.info.gz) Introduction (autosprintf.info.gz) Top (autosprintf.info.gz) Using autosprintf
 
 2 The `autosprintf' class
 *************************
 
 An instance of class `autosprintf' just contains a string with the
 formatted output result. Such an instance is usually allocated as an
 automatic storage variable, i.e. on the stack, not with `new' on the
 heap.
 
    The constructor `autosprintf (const char *format, ...)' takes a
 format string and additional arguments, like the C function `printf'.
 
    Conversions to `char *' and `std::string' are defined that return
 the encapsulated string.
 
    The destructor `~autosprintf ()' destroys the encapsulated string.
 
    An `operator <<' is provided that outputs the encapsulated string to
 the given `ostream'.
 
Info Catalog (autosprintf.info.gz) Introduction (autosprintf.info.gz) Top (autosprintf.info.gz) Using autosprintf
automatically generated byinfo2html