do...while Statement UML Activity Diagram

Figure 5.8 contains the do...while statement’s UML activity diagram, which makes it clear that the loop-continuation condition is not evaluated until after the loop performs its body at least once.


Fig. 5.8. UML activity diagram for the do...while repetition statement of Fig. 5.7.

Get C++11 for Programmers, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.