__gnu_pbds::insert_error(3cxx)

πŸ’– __gnu_pbds::insert_error

okay so this is the 3cxx manual page for __gnu_pbds::insert_error, bestie β€” buckle up, it's a tiny one but she's important πŸ’…

🌸 NAME 🌸

__gnu_pbds::insert_error β€” an entry cannot be inserted into a container object for logical reasons (not, e.g., if memory is unabvailable, in which case the allocator_type's exception will be thrown). No cap, that's the whole vibe: logical insert fail, not memory fail ✨

✨ SYNOPSIS ✨

#include <exception.hpp>

Inherits __gnu_pbds::container_error.

🌟 Public Member Functions 🌟

  • virtual const char * what () const noexcept β€” the one public member function, and she's noexcept πŸŽ€

πŸ¦‹ Detailed Description πŸ¦‹

Okay so picture this: an entry cannot be inserted into a container object for logical reasons β€” not, e.g., if memory is unabvailable, in which case the allocator_type's exception will be thrown. That's the whole deal, bestie. It's giving "the container said no for logic reasons, not because it ran out of memory" energy πŸ”₯

πŸ’… Member Function Documentation πŸ’…

πŸ’œ virtual const char * std::logic_error::what () const [virtual], [noexcept], [inherited]

Returns a C-style character string describing the general cause of the current error (the same string passed to the ctor). Literally the same string, iykyk 🫢

Reimplemented from std::exception.

Reimplemented in std::future_error.

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code. Slay, automation πŸŽ€βœ¨


sign-off time: source/version is libstdc++, page is __gnu_pbds::insert_error(3cxx). The footer doesn't give a date, so I'm not making one up, bestie β€” and that's on periodt πŸ’–πŸŒˆ