std::basic_stacktrace::at(3)

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

✨ NAME ✨

okay so bestie, welcome to the C++ Standard Libary page for std::basic_stacktrace::at β€” and yes, the name is literally std::basic_stacktrace::at - std::basic_stacktrace::at all over again. iconic. πŸ’…

🌸 Synopsis 🌸

the signature is giving:

const_reference at( size_type pos ) const;  (since C++23)

This one returns a reference to the entry at specified location pos, with bounds checking. 🫢

If pos is not within the range of the stacktrace, an exception of type std::out_of_range is thrown. no cap, it will absolutely call you out. 😭

πŸŽ€ Parameters πŸŽ€

  • pos β€” position of the stacktrace entry to return. that's the whole assignment, bestie. 🎯

πŸ¦‹ Return value πŸ¦‹

Reference to the requested entry. simple, clean, slay. ✨

πŸ’… Exceptions πŸ’…

std::out_of_range if pos >= size(). so if you're out here indexing past the end, it's throwing hands. πŸ™ˆ

πŸ”₯ Complexity πŸ”₯

Constant. periodt. no long dramatic monologue, just constant. πŸ’€

πŸ“ Example πŸ“

This section is incomplete. Reason: no example.

bestie, we're all waiting for the example to drop. πŸ“

🌈 See also 🌈

  • operator[] β€” access specified stacktrace entry (public member function). the bracket bestie has entered the chat. πŸ‘‘

⭐ Category ⭐

  • Todo no example

yep, that's the category tea. πŸ’…

Byeee bestie πŸ’– this was std::basic_stacktrace::at(3) β€” source/version vibes come from http://cppreference.com, dated 2024.06.10, mwah 😘

πŸ“¦ where this page comes from