We are committed to provide service 24 X 7

Deals, Shopping, Training, Tools

28
810.822,00

Cart

Tag: C++11 Smart Pointer – Part 5: shared_ptr

C++11 Smart Pointer – Part 5: shared_ptr, Binary trees and the problem of Cyclic References

bst

Main advantage of shared_ptr is that it automatically releases the associated memory when not used any more. But if we don’t use shared_ptr carefully then this advantage can turn into a disadvantage. Let’s look how, Advertisements Suppose I have to design a binary tree and in it the node contains a pointer to left and …

C++11 Smart Pointer – Part 5: shared_ptr, Binary trees and the problem of Cyclic ReferencesRead More

28
810.822,00

Cart