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 for the latest Boost documentation.
PrevUpHomeNext

Class remove_file_on_destroy

boost::interprocess::remove_file_on_destroy

Synopsis

// In header: <boost/interprocess/file_mapping.hpp>


class remove_file_on_destroy {
public:
  // construct/copy/destruct
  remove_file_on_destroy(const char *);
  ~remove_file_on_destroy();
};

Description

A class that stores the name of a file and tries to remove it in its destructor Useful to remove temporary files in the presence of exceptions

remove_file_on_destroy public construct/copy/destruct

  1. remove_file_on_destroy(const char * name);
  2. ~remove_file_on_destroy();

PrevUpHomeNext