std::codecvt<InternT,ExternT,State>::always_noconv,do_always_noconv (3) - Linux Manuals
std::codecvt<InternT,ExternT,State>::always_noconv,do_always_noconv: std::codecvt<InternT,ExternT,State>::always_noconv,do_always_noconv
Command to display std::codecvt<InternT,ExternT,State>::always_noconv,do_always_noconv
manual in Linux: $ man 3 std::codecvt<InternT,ExternT,State>::always_noconv,do_always_noconv
NAME
std::codecvt<InternT,ExternT,State>::always_noconv,do_always_noconv - std::codecvt<InternT,ExternT,State>::always_noconv,do_always_noconv
Synopsis
Defined in header <locale>
public: (1)
bool always_noconv() const;
protected: (2)
virtual bool do_always_noconv() const;
1) Public member function, calls the member function do_always_noconv of the most derived class.
2) Returns true if both do_in() and do_out() return std::codecvt_base::noconv for all valid inputs.
Return value
true if this conversion facet performs no conversions, false otherwise.
The non-converting specialization std::codecvt<char, char, std::mbstate_t> returns true
Notes
This function may be used e.g. in the implementation of std::basic_filebuf::underflow and std::basic_filebuf::overflow to use bulk character copy instead of calling std::codecvt::in or std::codecvt::out if it is known that the locale imbued in the std::basic_filebuf does not perform any conversions.
Exceptions
(none) (until C++11)
noexcept specification: (since C++11)
noexcept
Example
// Run this code
#include <locale>
#include <iostream>
int main()
{
std::cout << "The non-converting char<->char codecvt::always_noconv() returns "
<< std::boolalpha
<< std::use_facet<std::codecvt<char, char, std::mbstate_t>>(
std::locale()
).always_noconv() << "\n"
<< "while wchar_t<->char codecvt::always_noconv() returns "
<< std::use_facet<std::codecvt<wchar_t, char, std::mbstate_t>>(
std::locale()
).always_noconv() << "\n";
}
Output:
The non-converting char<->char codecvt::always_noconv() returns true
while wchar_t<->char codecvt::always_noconv() returns false
Pages related to std::codecvt<InternT,ExternT,State>::always_noconv,do_always_noconv
- std::codecvt<InternT,ExternT,State>::codecvt (3) - std::codecvt<InternT,ExternT,State>::codecvt
- std::codecvt<InternT,ExternT,State>::encoding,do_encoding (3) - std::codecvt<InternT,ExternT,State>::encoding,do_encoding
- std::codecvt<InternT,ExternT,State>::in,std::codecvt<InternT,ExternT,State>::do_in (3) - std::codecvt<InternT,ExternT,State>::in,std::codecvt<InternT,ExternT,State>::do_in
- std::codecvt<InternT,ExternT,State>::length,do_length (3) - std::codecvt<InternT,ExternT,State>::length,do_length
- std::codecvt<InternT,ExternT,State>::max_length,do_max_length (3) - std::codecvt<InternT,ExternT,State>::max_length,do_max_length
- std::codecvt<InternT,ExternT,State>::out,do_out (3) - std::codecvt<InternT,ExternT,State>::out,do_out
- std::codecvt<InternT,ExternT,State>::unshift,do_unshift (3) - std::codecvt<InternT,ExternT,State>::unshift,do_unshift
- std::codecvt<InternT,ExternT,State>::~codecvt (3) - std::codecvt<InternT,ExternT,State>::~codecvt
- std::codecvt (3) - std::codecvt
- std::codecvt_base (3) - std::codecvt_base
- std::codecvt_byname (3) - std::codecvt_byname
- std::codecvt_mode (3) - std::codecvt_mode
- std::codecvt_utf8 (3) - std::codecvt_utf8
- std::codecvt_utf8_utf16 (3) - std::codecvt_utf8_utf16
- std::codecvt_utf16 (3) - std::codecvt_utf16
- std::collate (3) - std::collate