From 4ecea77e0a3ee7be708284f35ed71ad1159cc41b Mon Sep 17 00:00:00 2001 From: Angel Dimitriev Date: Mon, 16 Mar 2020 01:21:42 +0200 Subject: Update 2. shared_ptr.cpp --- Smart_pointers/2. shared_ptr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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. -- cgit v1.3.1-23-gd82d