Website Summary Files Commits Branches @commit @diff @stats
path: root / Smart_pointers
diff options
context:
space:
mode:
Commit4ecea77e0a3ee7be708284f35ed71ad1159cc41b (patch)
Author
 Angel Dimitriev <achi_d@abv.bg>
2020-03-16 01:21:42 +0200
Committer
 GitHub <noreply@github.com>
2020-03-16 01:21:42 +0200
Filesf2e3526a751bf60e49ccc2a6871c49822c337172 /Smart_pointers
Object-oriented_programming_FMI-4ecea77e0a3ee7be708284f35ed71ad1159cc41b.tar
Object-oriented_programming_FMI-4ecea77e0a3ee7be708284f35ed71ad1159cc41b.tar.gz
Object-oriented_programming_FMI-4ecea77e0a3ee7be708284f35ed71ad1159cc41b.zip
Parent4e289d5e1f6234f3460d414764f9e326f8c79f04 (diff)
Update 2. shared_ptr.cpp
1 files changed, 1 insertions, 1 deletions
-rw-r--r--Smart_pointers/2. shared_ptr.cpp2
diff --git a/Smart_pointers/2. shared_ptr.cpp b/Smart_pointers/2. shared_ptr.cpp
index c8b1cd3..b8437a8 100644
--- a/Smart_pointers/2. shared_ptr.cpp
+++ b/Smart_pointers/2. shared_ptr.cpp
@@ -34,7 +34,7 @@ int main()
shared_ptr<Test> smart_pointer_2(smart_pointer_1);
- cout << smart_pointer_1.get() << endl; //За разлика от uniqe_ptr тук smart_pointer_1 ПРОДЪЛЖАВА да сочи към обекта.
+ cout << smart_pointer_1.get() << endl; //За разлика от uniqe_ptr, тук smart_pointer_1 ПРОДЪЛЖАВА да сочи към обекта.
cout << smart_pointer_2.use_count() << endl; //може да видим колко пойнтера са насочени към обекта.
// Обектът ще се изтрие, когато пойнтерите станат 0.