BloombergLP::bslfmt::FormatterIntegralBase::formatValue

Write the string representation of value into valueStorage.

Synopsis

Declared in <bslfmt_formatterintegralbase.h>

template<class t_ACTUAL_VALUE_TYPE>
t_CHAR*
formatValue(
    t_CHAR* valueStorage,
    int storageSize,
    t_ACTUAL_VALUE_TYPE value) const;

Description

Create the string representation of the specified value and write it into the character buffer starting at the specified valueStorage and having the specified storageSize. Return the address one past the last character. Throw bsl::format_error if parsed format specification is intended for non-integer type or the value is not in the range of representable values for the (template parameter) t_CHAR with character type specification.

Return Value

address one past the last character written

Parameters

NameDescription
valueStoragebuffer that receives the formatted value
storageSizesize of valueStorage in characters
valuevalue whose string representation is produced