We are committed to provide service 24 X 7

Deals, Shopping, Training, Tools

37
1.702.586,20

Cart

Quantity 2.750,00

Tag: References

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

C++11 Move Contsructor & rvalue References

In this article we will discuss the use of rvalue references in C++11 move semantics. Problem of Temporary Objects The Idea behind this move semantics is to reduce the load of these temporary objects on memory. Every time we return a object from a function then a temporary object is created, which eventually get copied. In then …

C++11 Move Contsructor & rvalue ReferencesRead More

37
1.702.586,20

Cart

Quantity 2.750,00