what's the different between a const version and mutable version member function
Posted
by Yongwei Xing
on Stack Overflow
See other posts from Stack Overflow
or by Yongwei Xing
Published on 2010-06-18T02:22:30Z
Indexed on
2010/06/18
2:33 UTC
Read the original article
Hit count: 284
c++
Hi all
I am very confused about the const version and mutable version member function like below::
value_type& top() { return this.item }
const value_type& top() const { return this.item }
What is the different these two functions? In what situation they would be used? Could someone give me some explanation about it?
Best Regards,
© Stack Overflow or respective owner