Skip to content

Latest commit

 

History

History
1 lines (1 loc) · 299 Bytes

12.3.md

File metadata and controls

1 lines (1 loc) · 299 Bytes

No, a const object of this class type should not be able to change the object. Thus we should not define const version of push_back or pop_back. Although the complier does not report errors if we define const versions of push_back and pop_back, it is not logical for a const object.