juanemilio8833 juanemilio8833
  • 09-08-2017
  • Computers and Technology
contestada

To help prevent memory leaks from occurring in c++ 11, a ________ automatically deletes a chunk of dynamically allocated memory when the memory is no longer being used.

Respuesta :

Noah11012
Noah11012 Noah11012
  • 09-08-2017
The answer is smart pointers. Smart pointers are wrappers for raw pointers or as I like to call them dumb pointers.

In C++, it is guaranteed that the deconstructor will be called when the object goes out of scope.
Answer Link

Otras preguntas

A bakery offers a sale price of $2.90 for 4 muffins. What is the price per dozen?
Urgent!!!!!!! PLEASE HELP!!!! WILL MARK BRAINLIEST!!!!!Explain how one of the processes discussed in this module (photosynthesis, cellular respiration or the ca
What is the value of (5.3x 10^4(4.2x10^3) in scientific notation?1) 2.226 x 10^62) 22 26x 10^73) 2226x 10^84) 22.26 x 10^12​
ind the slope of a line perpendicular to x-y=16 A. 1/16 B. 16 C. 1 D. -1
what happens to the tension after the climax of the story
PLEASE HELP THIS IS URGENT! Which chemical is most important in telling a plant when to flower? phytochrome nitrogen carotenoid chlorophyll
Why was Emperor Kangxi successful?
how do you factor x squared minus 100
Sketch the graph of the given function. The state the functions domain and rangef(x)=-2{1/4}^x​
!!! BRAINLY ALERT !!! !!! BRAINLY ALERT!!!how does Anne Frank feel about mr. van daan? Also, how do these characters interact/get along with others? Anne Frank: