Name | Ownership | Copyable | Movable | Sharing | Lifetime | Semantics |
---|---|---|---|---|---|---|
unique_ptr | Unique | ❌ | ✅ | ❌ | Lexical | Reference |
shared_ptr | Shared | ✅ | ✅ | Reference | Reference-counted | Reference |
weak_ptr | ❌ | ✅ | ✅ | ❌ | Non-extending | Optional-reference |
value_ptr | Unique | ✅ | ✅ | Value | Lexical | Value |
Created
May 25, 2017 14:08
-
-
Save njlr/b03f212a3b56a22a54db536f536434ff to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment