You go to McDonald and get the menu. There are many different items on the menu, including Big Mac, Quarter Pounder w / Cheese, hot apple pie and the ever-disgusting Fisht-O-Fish.
You go to the rack and order a Big Mac. You are offered a 3-layer bun, 2 "all beef" pies and some special sauce, all embedded in a piece of paper.
The person behind you orders the same thing and they are given their hamburger. You both sit down and start eating. You eat very fast, but your neighbor barely touches it.
The 3rd person in line orders an Apple Pie, and they are given something completely different. A small semi-cylindrical cookie filled with something resembling apples.
In this analogy, menu printing is the duration of storage, and the type of hamburger itself is similar to the lifetime of an object. Two storage durations were selected; Big Mac and Apple Pie. As a result, three objects were created: two burgers and one cookie. Two of these objects have the same general make-up, although they are two different hamburgers, but the third is different. Two storage durations, three objects.
Your quote:
The lifetime of an object is equal to or nested during the life of its storage.
It is not a definition for “lifetime” or “storage duration,” but it simply binds the two together. He tells you that given the “storage time” of X, you can expect a life of Y.
In this sense, these two members are indeed two sides of the same coin. A specific storage time gives a specific service life.
This is described in detail in the standard (C ++ 03):
3.8 Object lifetime
1 / The lifetime of an object is a property of the runtime of an object. The lifetime of an object of type T begins when: - storage with proper alignment and size for type T, and - if T is a class type with a nontrivial constructor (12.1), the constructor call has completed. The lifetime of an object of type T ends when: - if T is a class type with a nontrivial destructor (12.4), a call to the destructor begins, or - the storage that the object occupies, reuses, or is freed.
3.7 Duration of storage
1 / Duration of storage is a property of an object that determines the minimum potential lifetime of the storage containing the object. Storage duration is determined by the design used to create the object, and is one of the following: - static storage duration - automatic storage duration - dynamic storage duration