std::codecvt_base
From cppreference.com
 
 
 
 
 
 C++ 
 Feature test macros (C++20)
 Concepts library (C++20)
 Metaprogramming library (C++11)
 Ranges library (C++20)
 Filesystem library (C++17)
 Concurrency support library (C++11)
 Execution control library (C++26)
Text processing library 
 
 
 
 
 
 
 
 
 Regular expressions library (C++11)
 Formatting library (C++20)
(C++17)
(C++17)
(C++17)
(C++17)
(C++17)
(C++26)
Localization library 
 
 
 
 
 
 
 
 
 
 
codecvt_base
(C++11/17/26*)
(C++11/17/26*)
(C++11/17/26*)
(C++11/17/26*)
(C++11/17/26*)
(C++11/17/26*)
Defined in header 
 
 
<locale> 
 class codecvt_base;
 
 
The class std::codecvt_base provides the conversion status constants which are inherited and used by the std::codecvt facets.
[edit] Member types
 Member type
 Definition
 enum result { ok, partial, error, noconv };
 Unscoped enumeration type
 Value
 Explanation
ok
 conversion was completed with no error
partial
 not all source characters were converted
error
 encountered an invalid character
noconv
 no conversion required, input and output types are the same
[edit] Notes
The value std::codecvt_base::partial is used to indicate that either the destination range is too short to receive the results of the conversion or the input is truncated in the middle of an otherwise valid multibyte character.