std::error_code::clear(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’– std::error_code::clear(3) πŸ’–

okay so this page is from the C++ Standard Libary (yes bestie, that spelling is literally right there, we are not fixing it πŸ’…) and it's all about the one and only std::error_code::clear.

✨ NAME ✨

std::error_code::clear - std::error_code::clear

Lowkey the name is the name. It's giving β€œI am the function, your honor” energy πŸ‘‘.

🌸 Synopsis 🌸

void clear() noexcept;  (since C++11)

Replaces the error code and error category with default values.

Equivalent to *this = error_code(0, std::system_category());.

🫢 Parameters 🫢

(none) β€” she takes nothing, periodt.

πŸŽ€ Return value πŸŽ€

(none) β€” she gives nothing back, also iconic.


mwah πŸ’‹ this lil' page came from source http://cppreference.com, dated 2024.06.10, and the page is std::error_code::clear(3). byeee βœ¨πŸ¦‹

πŸ“¦ where this page comes from