std::experi...ed_ptr::get(3)

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

πŸ’– std::experi...ed_ptr::get(3) πŸ’–

okay so bestie, this page is from the C++ Standard Libary manual, and it is all about std::experi...ed_ptr::get(3). it is giving tiny page, huge stored-pointer energy ✨


🌸 NAME 🌸

std::experimental::shared_ptr::get - std::experimental::shared_ptr::get

✨ Synopsis ✨

the synopsis literally says:

element_type* get() const noexcept;  (library fundamentals TS)

Returns the stored pointer.

🫢 Parameters 🫢

(none) β€” no parameters, periodt πŸ’…

🌟 Return value 🌟

The stored pointer. that is it, that is the whole vibe πŸŽ€

πŸ”₯ Notes πŸ”₯

A shared_ptr may share ownership of an object while storing a pointer to another object. get() returns the stored pointer, not the managed pointer.

πŸ’€ Example πŸ’€

This section is incomplete

Reason: no example

πŸ‘€ See also πŸ‘€

  • operator* β€” dereferences the stored pointer
  • operator-> β€” (public member function)

πŸŽ€ Categories: πŸŽ€

  • Noindexed pages
  • Todo no example

mwah πŸ’‹ source/version: http://cppreference.com; date: 2024.06.10; page: std::experi...ed_ptr::get(3).

πŸ“¦ where this page comes from