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 an old version of boost. Click here for the latest version's documentation home page.
PrevUpHomeNext

Class remove_shared_memory_on_destroy

boost::interprocess::remove_shared_memory_on_destroy

Synopsis

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

Description

A class that stores the name of a shared memory and calls shared_memory_object::remove(name) in its destructor Useful to remove temporary shared memory objects in the presence of exceptions

remove_shared_memory_on_destroy public construct/copy/destruct

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

PrevUpHomeNext