Container objects logically encapsulate other objects. 容器對象從邏輯上封裝其他對象。
By storing the comparator in the container object, we are assured that every operation that compares elements will do so consistently. 通過(guò)將比較器存儲在容器對象中,可以保證比較元素的每個(gè)操作將一致地進(jìn)行。