codecvt_base class — Base class for the codecvt template
class codecvt_base { public: enum result { ok, partial, error, noconv }; };
The codecvt_base
class is
the base class for the codecvt
and codecvt_byname
class
templates. It declares the result
type, which is the type returned by the do_in
and do_out
conversion functions. Table 13-19 lists the
literals of the result
enumerated
type.
Table 13-19. codecvt_base::result literals
Literal | Description |
---|---|
| Error in conversion (e.g., invalid state or multibyte character sequence) |
| No conversion (or |
| Conversion finished successfully |
| Not all source characters converted, or
|