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 light plane flew from its home base to an airport 255 miles away. With a head wind, the trip took 1.7 hours. The return trip with a tail wind took 1.5 h
What's breed of given cat???Check attachment
on sara's computer, 3/8 of the hard drive is files. Of the files, 1/6 are games . What part of the hard drive is games?
What were the 4 major truths Jefferson presented in the declaration of independence?
on sara's computer, 3/8 of the hard drive is files. Of the files, 1/6 are games . What part of the hard drive is games?
what type of rock is the Haystack rock (igneous, Metamorphic, or Sedimentary)
What's breed of given cat???Check attachment
3 ( 4d + 1 ) - 9d = 6 - 2d
what type of rock is the Haystack rock (igneous, Metamorphic, or Sedimentary)
what type of rock is the Haystack rock (igneous, Metamorphic, or Sedimentary)