Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Function detect_memory_leaks

boost::debug::detect_memory_leaks — Switches on/off memory leaks detection.

Synopsis

// In header: <boost/test/debug.hpp>


void detect_memory_leaks(bool on_off, 
                         unit_test::const_string report_file = unit_test::const_string());

Description

On platforms where memory leak detection is possible inside of running application (at the moment this is only Windows family) you can switch this feature on and off using this interface. In addition you can specify the name of the file to write a report into. Otherwise the report is going to be generated in standard error stream.

Parameters:

on_off

boolean switch

report_file

file, where the report should be directed to


PrevUpHomeNext