Encode input characters to hexadecimal output.
Declared in <bdlde_hexencoder.h>
template<
class OUTPUT_ITERATOR,
class INPUT_ITERATOR>
int
convert(
OUTPUT_ITERATOR out,
INPUT_ITERATOR begin,
INPUT_ITERATOR end);
Append pending output (if any) addressed by the specified out, then consume and encode input from the specified begin up to but not including the specified end. Return a non-negative value on success and a negative value otherwise. Note that after all calls to convert are finished, endConvert should be called to complete encoding of any unprocessed input.
a non-negative value on success, and a negative value otherwise
| Name | Description |
|---|---|
| out | destination iterator for encoded output |
| begin | beginning of the input range to encode |
| end | end of the input range (one past the last element) |