-3

I have a C++ code for deque which declares the deque and I do not understand what it means?

deque<int> pile[7];

The above deque used is from standard library implementation of C++ I did an extensive research on it but no body has used it this way. I don't know if this is

  1. "deque of deques" or
  2. "deque of arrays" or
  3. "arrays of deque"

Kindly please explain?

Niall
  • 30,036
  • 10
  • 99
  • 142

1 Answers1

1

For any type T, T[N] denotes an array of N elements of type T.

You have T pile[7] with T = deque<int>, so pile is an array of seven deques.

Kerrek SB
  • 464,522
  • 92
  • 875
  • 1,084