From: Grzegorz J. <ja...@he...> - 2004-03-04 01:30:58
|
Hi Markus, On Wed, 3 Mar 2004, SF Markus Elfring wrote: > > First, please read my post again. I am not saying that you *need* pointers > > to express "special value". > > How do you think about to return an object for your "special value" > like it is done with the methods "begin" and "end" in a list class? > http://www.igpm.rwth-aachen.de/C++/STL_doc/List.html Why do you think STL list<>::end() returns an object? Do you think that in general it is better to return an object rather then NULL pointer? If so, why? > > Third, I am not sure I fully understand your iterators example. The source > > of my confusion may be the fact that raw poiters are also valid STL > > iterators. Could you elaborate on what exactly you want to point out? > > The STL encapsulates this behaviour with template classes. What do you mean by "this behaviour" ? Could you restate? > So you are used to that kind of "magic". > > > I am sorry, I do not understand the question. What copy semantics do I use > > where? > > This topic deals with object identity and object equality. Yes, there are connections. But what is your question? Regards Grzegorz ################################################################## # Grzegorz Jakacki Huada Electronic Design # # Senior Engineer, CAD Dept. 1 Gaojiayuan, Chaoyang # # tel. +86-10-64365577 x2074 Beijing 100015, China # # Copyright (C) 2003 Grzegorz Jakacki, HED. All Rights Reserved. # ################################################################## |