std::experi...ng_view::at(3)
π NAME π
hi bestie, welcome to std::experi...ng_view::at(3) β that's the page from the C++ Standard Libary manual, and the actual name is std::experimental::basic_string_view::at β std::experimental::basic_string_view::at. yes, she says it twice, it's iconic, we respect it. π
β¨ Synopsis β¨
okay so the signature is literally this, no cap:
constexpr const_reference at(size_type pos) const;
and the synopsis tags it with (library fundamentals TS). π
This one returns a reference to the character at specified location pos. Bounds checking is performed β yes, she checks β and an exception of type std::out_of_range will be thrown on invalid access. π«Ά
π Parameters π
posβ position of the character to return. that's it, that's the parameter. πΈ
πΈ Return value πΈ
Reference to the requested character. the character you asked for, periodt. β¨
π₯ Exceptions π₯
Throws std::out_of_range if pos >= size(). like, if you reach past the end, she will not be quiet about it. π
β Complexity β
Constant.
π¦ See also π¦
operator[]β access specified character (public member function)
π·οΈ Category π·οΈ
Noindexed pages
okay that's the whole page, bestie β source/version + date: http://cppreference.com, 2024.06.10. and yep, the footer still says std::experi...ng_view::at(3). mwah ππ
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms