std::regex_...r::operator=(3)

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

πŸ’– NAME πŸ’–

std::regex_error::operator= β€” literally std::regex_error::operator=. This is the std::regex_...r::operator=(3) page from the C++ Standard Libary, and it’s all about assigning one regex_error object to another. πŸŽ€βœ¨

✨ Synopsis ✨

Okay so the signature is:

regex_error& operator=( const regex_error& other ) noexcept;  (since C++11)

It assigns the contents with those of other. If *this and other both have dynamic type std::regex_error, then after assignment std::strcmp(what(), other.what()) == 0. That’s the whole vibe check, bestie. πŸ’…

πŸŽ€ Parameters πŸŽ€

  • other β€” another regex_error object to assign with. 🫢

🌸 Return value 🌸

  • *this β€” the return value is literally *this, no cap. πŸ‘‘

πŸ¦‹ Example πŸ¦‹

This section is incomplete.

Reason: no example. 😭

🧚 Category 🧚

  • Todo no example.

xoxo, your Unix bestie πŸ’– Β· source: http://cppreference.com Β· version/date: 2024.06.10 Β· page: std::regex_...r::operator=(3) 🌈

πŸ“¦ where this page comes from