std::error_code::category(3)

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

πŸ’– NAME πŸ’–

std::error_code::category - std::error_code::category

okay so this is std::error_code::category(3), straight out of the C++ Standard Libary man pages, and yes bestie, the name is literally the same thing twice β€” that's the assignment πŸ’…

πŸ“œ Synopsis πŸ“œ

const std::error_category& category() const noexcept;  (since C++11)

It's giving tiny signature, main character energy: const, noexcept, and she's been around since C++11 ✨

πŸŽ€ Parameters πŸŽ€

(none) β€” zero arguments, not a single one, bestie 🫢

🌸 Return value 🌸

You get back the error category of the error code. That's the whole return value. iconic πŸ‘‘

πŸ¦‹ See also πŸ¦‹

  • value β€” obtains the value of the error_code (public member function)

mwah πŸ’‹ β€” source/version: http://cppreference.com; date: 2024.06.10.

πŸ“¦ where this page comes from