class formatter #( type T = int )
singleton Provides a strategy to convert an object of type T into a string.
| T | optional The type of an object to be converted. The default is int. |
| formatter | singleton Provides a strategy to convert an object of type T into a string. |
| Types | |
| this_type | The shorthand of formatter #(T). |
| Functions | |
| new | protected Creates a new formatter. |
| get_instance | static Returns the singleton instance of this formatter. |
| to_string | virtual Returns a string representation of the given object of type T. |
typedef formatter#( T ) this_type
The shorthand of formatter #(T).
singleton Provides a strategy to convert an object of type T into a string.
class formatter #( type T = int )
The shorthand of formatter #(T).
typedef formatter#( T ) this_type
protected Creates a new formatter.
protected function new()
static Returns the singleton instance of this formatter.
static function this_type get_instance()
virtual Returns a string representation of the given object of type T.
virtual function string to_string( T o )