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

Meetings of major world leaders are called _____.
¿Cuál es una actividad física popular en... los Estados Unidos? Top 5
What role is found in absolutely every kind of court? jury judge executioner lawyer
Pls help me I only have today to finish 38 assignments!!!
Fiona bought these exercise aids. Each one measures approximately 25 inches around its base. How can Fiona find the area of an aid that is textured?
Type the correct answer in the box. Spell all words correctly. Which language should you use to add functionality to web pages? *blank* language is used to add
The volume of the triangular prism shown is given by V=x^3 -7x-6. Which polynomial represents the area of the base of the prim?
Matter is defined as anything that a. can be seen and touched. b. has mass and takes up space. can be weighed. d. contains kinetic or potential energy. Please s
What is the percent nitrogen in NaN*O_{3} ?
According to our current knowledge of plant evolution, which group of organisms should feature cell division most similar to that of land plants?.