GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
* Sign Up! *

Support
Customer Portal
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
std::weak_ptr::owner_hash(3) C++ Standard Libary std::weak_ptr::owner_hash(3)

std::weak_ptr::owner_hash - std::weak_ptr::owner_hash


std::size_t owner_hash() const noexcept; (since C++26)


Returns an unspecified value such that for any object other where owner_equal(other)
is true, owner_hash() == other.owner_hash() is true.


This hashing is used to make shared and weak pointers usable as keys in unordered
associative containers, typically through std::owner_hash.


A value that is identical for any std::shared_ptr or std::weak_ptr object sharing
the same ownership.


Feature-test macro Value Std Feature
Enabling the use of std::weak_ptr
__cpp_lib_smart_ptr_owner_equality 202306L (C++26) as keys in unordered associative
containers


This section is incomplete
Reason: example


owner_hash provides owner-based hashing for shared and weak pointers
(C++26) (class)


* Todo with reason

2024.06.10 http://cppreference.com

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.