std::operat...error_code)(3)
πΈ NAME πΈ
okay bestie, welcome to the std::operator<<(std::error_code) page from the C++ Standard Libary manual, section 3 β yes, manual name folded in near the top, header line not copied, we're being so good π
. The NAME is literally std::operator<<(std::error_code) β std::operator<<(std::error_code). It's giving "operator shift left but make it error codes," and honestly? iconic.
β¨ Synopsis β¨
Defined in header <system_error>:
template< class CharT, class Traits >
std::basic_ostream<CharT, Traits>&
(since C++11)
operator<<( basic_ostream<CharT, Traits>& os, const error_code&
ec );
This overload has been around since C++11 β not new, but still main character energy. It performs the stream output operation on error code ec, fr fr.
Equivalent to:
os << ec.category().name() << ':' << ec.value()
Like, literally that. No cap. π«Ά
π Parameters π
osβ output stream to insert data to. That's the stream bestie is writing into.ecβ error code. The error code in question, periodt.
π Return value π
os β the output stream, returned right back to you. That's the whole return value, slay. β¨
that's the page, bestie π source/version: http://cppreference.com, date: 2024.06.10, and the footer tag is std::operat...error_code)(3). mwah π
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms