C++ memory model

C++ provides an abstract model describing how it provides access to computer memory. It is also used as a de facto model for other data-bearing media, including other forms of storage (such as hard drives, magnetic tapes, and optical discs) as well as data streams (such as USB ports or network connections).


 * The basic unit of storage is the byte, which consists of a sequence of contiguous bits. (The number of bits in a byte is implementation-defined.)
 * Storage consists of a sequence of bytes, each with a unique address.
 * At any point during program execution, a group of contiguous bytes may be associated with an object. This group of bytes is known as a region of storage and is used to store the the current state or value of the object.