std::error_code::assign(3)

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

✨ NAME ✨

std::error_code::assign β€” std::error_code::assign, bestie πŸ’… no cap, that's the whole name. This page is from the C++ Standard Libary and it's filed under std::error_code::assign(3) πŸ¦‹

🌸 Synopsis 🌸

void assign( int val, const error_category& cat ) noexcept;  (since C++11)

Replaces the contents with error code value val and corresponding category cat ✨

πŸŽ€ Parameters πŸŽ€

  • val β€” platform-dependent error code value to assign πŸ’–
  • cat β€” error category corresponding to val 🫢

πŸ’« Return value πŸ’«

(none) β€” literally nothing comes back, and that's iconic 😌

πŸ‘€ See also πŸ‘€

  • operator= β€” assigns another error code (public member function) πŸ”₯

xoxo, your fave little manual page πŸ’œ brought to you by http://cppreference.com, dated 2024.06.10, and filed under std::error_code::assign(3) 🌈✨

πŸ“¦ where this page comes from