Kaydet (Commit) 4c83120e authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen

update docs for C++11 iteration

Change-Id: Iab8b2e3d9e85d715de6ca973fd1c541c837bf6f3
üst 0e2927ed
...@@ -147,13 +147,9 @@ namespace sw ...@@ -147,13 +147,9 @@ namespace sw
/** /**
* iterator access * iterator access
* @code * @code
* for(Ring<SwPaM>::iterator ppRing = pPaM->beginRing(); ppRing != pPaM->endRing(); ++ppRing) * for(SwPaM& rCurrentPaM : pPaM->GetRingContainer())
* do_stuff(*ppRing); * do_stuff(rCurrentPaM); // this gets called on every SwPaM in the same ring as pPaM
* @endcode * @endcode
* @TODO: unfortunately we cant name these STL-conforming, as some derived classes
* also derive from other STL containers. This should be fixed though.
* That should allow this to be used directly with C++11s for( : )
* iteration statement.
*/ */
iterator begin(); iterator begin();
iterator end(); iterator end();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment