Container Elements Are Copies

++ Primer 4/e在Sequence Container Operations這個地方有一個關鍵觀念:『When we add an element to a container, we do so by copying the element value into the container. Similarly, when we initialize a container by providing a range of elements, the new container contains copies of the original range of elements. There is no relationship between the element in the container and the value from which it was copied. Subsequent changes to the element in the container have no effect on the value that was copied, and vice versa.』




發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *