[PATCH] D30338: [Doc] Modernize programmers manual

Piotr Padlewski via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 24 09:42:45 PST 2017


Prazek added inline comments.


================
Comment at: docs/ProgrammersManual.rst:2267-2271
-Note that i can be used as if it were a pointer for the purposes of invoking
-member functions of the ``Instruction`` class.  This is because the indirection
-operator is overloaded for the iterator classes.  In the above code, the
-expression ``i->size()`` is exactly equivalent to ``(*i).size()`` just like
-you'd expect.
----------------
Mehdi, is it fine if I will delete this? The example doesn't contain the iterator now, and I would expect someone who would use the iterator to know how iterators works.


https://reviews.llvm.org/D30338





More information about the llvm-commits mailing list