Today I was surprised to find the following comment within TDF_AttributeIterator.hxx:
// DO NOT USE THIS CLASS WITHOUT AUTHORIZATION!
// This class provides a way to iterates on the
// up-to-date (current) valid attributes of a label.
// Even a Forgotten attribute may be found if this
// option is set. To use this possibility, look at
// the constructor.
// Sorry: nobody needs this iterator but its friends!
I actually use TDF_AttributeIterator now and then, if I want to perform checks or actions on every attribute of a certain label. Why shouldn't I? What is the alternative? Or is the comment some ancient relict that may be removed? Thank you!