File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 77 * iterator support. It behaves as a normal deque should, but the
88 * internal implementation is unique. Picture a torus-shaped array.
99 * In the function \c push_front() the private data field \c first
10- * is at index 0 and moves left after each insert at \c data[first].
10+ * begins at index 0 and moves left after each insert at \c data[first].
1111 * In the function \c push_back() private data field \c last begins
1212 * at index 1 and moves right after each insert at \c data[last].
1313 * For users of the container, these implementation details need not be known.
@@ -64,9 +64,9 @@ class deque {
6464
6565 size_type size () const { return count; }
6666
67- bool empty () const { return count == 0 ; } // or first + 1 % cap == last
67+ bool empty () const { return count == 0 ; } // or first + 1 % cap == last
6868
69- bool full () const { return count == CAPACITY; } // or last == first
69+ bool full () const { return count == CAPACITY; } // or last == first
7070
7171 size_type get_first () const { return first; }
7272
You can’t perform that action at this time.
0 commit comments