
The Lifetime of Temporary Objects
Temporary objects, or unnamed objects, are created as a result of expressions requiring a temporary object or when the user instantiates them explicitly. If the temporary object is not bound to a reference and it isn’t used as an initializer of a named object, it is destroyed at the end