class Order {
private:
vector<OrderItem> items;
public:
// Constructor
Order() {}
// accessors
OrderItem operator[](int index) const {
return items[index];
}
// mutators
OrderItem& operator[](int index) {
return items[index];
}
in this programme the accessors seems useless,and what is the use of the operator "&" in the mutator?