std::error_...ion::assign(3)

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

πŸ’– NAME πŸ’–

Okay bestie, the NAME here is std::error_condition::assign - std::error_condition::assign β€” yes, self-titled icon behavior, we love to see it πŸ’…. This page lives in the C++ Standard Libary manual, and the header/footer abbreviate it as std::error_...ion::assign(3).

πŸ¦‹ Synopsis πŸ¦‹

void assign( int val, const error_category& cat ) noexcept;

✨ since C++11 ✨ β€” and noexcept is literally right there in the signature, no cap.

This function assigns contents to an error condition. It sets the error value to val and the error category to cat.

πŸŽ€ Parameters πŸŽ€

  • val β€” error value
  • cat β€” error category

✨ Return value ✨

There is no return value, bestie: (none). Not a crumb. 😭


xoxo πŸ’‹ β€” sourced from http://cppreference.com, dated 2024.06.10, with the footer keeping that iconic truncated std::error_...ion::assign(3) name. Slay. 🫢

πŸ“¦ where this page comes from