CPSC 421 OOP Iterator
Across
- 3. A C++11 function equivalent to "p + n"
- 4. Name of the operator for "p[n]"
- 7. The iterator that cannot do decrement
- 12. Container method that returns an iterator to the first element
- 13. Early programming language with forward iterators only and where indexing made no sense
- 15. Use this as the type to make declaration easier and to make the code more adaptable
- 16. The iterator that can do decrement, but not increment with n > 1
- 17. Name of the operator for "*p"
- 18. Const iterator form of end()
- 20. A C++ function equivalent to "p += n"
- 22. _____ usage helps in the comprehension of the code
- 23. Always prefer __-___ to post-increment
- 26. Are we done yet?
- 30. A C++11 function that is the number of elements from begin to p, i.e., "p - begin"
- 32. An iterator that models access to singly-linked lists
- 33. Always prefer __-____ to post-decrement
- 34. An iterator with one-pass output to streams
- 35. A common interface makes it ____ to learn new data structures
- 36. A C++11 function equivalent to "p - n"
- 39. Const iterator form of begin()
- 40. One of the C++ Library Sequence Containers
- 42. Const reverse iterator form of begin()
- 43. Name of the operator for "++p"
Down
- 1. An iterator that models access to doubly-linked lists
- 2. Can create ____-______ data structures that work with existing algorithms
- 3. std::vector, std::deque, and std::list are examples of ______ containers
- 5. Const reverse iterator form of end()
- 6. Iterators began with data structures where _____ is expensive, but accessing the next element is not
- 8. Reverse iterator form of begin()
- 9. We use "!=" instead of "<" with iterators because sequential elements may not be _______
- 10. std::set and std::map are examples of _____ containers
- 11. Iterator Design ____
- 14. Iterators are small and passed by ____
- 19. Restart the iteration in the GoF Iterator
- 21. Get current item in the GoF Iterator
- 24. Reverse iterator form of end()
- 25. Nickname for the authors of "Design Patterns: Elements of Reusable Object-Oriented Software"
- 27. One of the C++ Library Algorithms
- 28. The ____-_____ iterator models array access
- 29. Advance to the next item in the GoF Iterator
- 31. An iterator with one-pass input from streams
- 37. One of the C++ Library Sequence Containers
- 38. One of the C++ Library Sequence Containers
- 40. One of the C++ Library Algorithms
- 41. Container method that returns an iterator past the last element of the container