Skip to content

Commit f26cc3b

Browse files
committed
Cleaned code
1 parent 1979646 commit f26cc3b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Torus Deque/deque.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
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

0 commit comments

Comments
 (0)