From Wikipedia, the free encyclopedia
- auto_ptr
- auto_ptr is a template class available in the C++ Standard Library (declared in <memory>) that provides some basic RAII features for C++ raw pointers.
The auto_ptr template class describes an object that stores a pointer to an allocated object of type Type* that ensures that the object to which it points gets destroyed automatically when control leaves a scope.
- auto_ptr is a template class available in the C++ Standard Library (declared in <memory>) that provides some basic RAII features for C++ raw pointers.
- Resource Acquisition Is Initialization (RAII)
- The acquisition is typically bound to the construction (initialization) and the automatic, deterministic destruction (uninitialization) is used to guarantee the resource is released. Since scoped objects are cleaned up regardless of whether the scope exits through normal use or through an exception, RAII is a key concept for writing exception-safe code.
- virtual inheritance
- In the C++ programming language, virtual inheritance is a kind of inheritance that solves some of the problems caused by multiple inheritance (particularly the "diamond problem") by clarifying ambiguity over which ancestor class members to use.
- c++-faq-lite
- placement new
- The simplest use is to place an object at a particular location in memory. This is done by supplying the place as a pointer parameter to the new part of a new expression.
- volatile keyword
- http://www.embedded.com/story/OEG20010615S0107
- http://www.redhat.com/docs/manuals/enterprise/RHEL-3-Manual/gcc/volatiles.html
- Data structure alignment