If an object of a standard library type is accessed, and
the beginning of the object's lifetime (
[basic.life])
does not happen before the access, or
the access does not happen before the end of the object's lifetime,
the behavior is undefined unless otherwise specified
.