What storage duration does member variables have?

I thought member variables have automatic storage duration because they are automatically destroyed when the parent object is destroyed, but when I search I find nothing and the standard only seem to talk about local function variables.

Do they lack storage duration or do they inherit the storage duration from the parent object?
Last edited on
Objects can contain other objects, called subobjects. A subobject can be a member subobject, a base class subobject, or an array element. An object that is not a subobject of any other object is called a complete object.
...
The storage duration of member subobjects, base class subobjects and array elements is that of their complete object.
Ah, I guess I have been thinking about storage duration the wrong way.
Topic archived. No new replies allowed.