I want to get the size of a nested deque, like this one:
typedef struct{
deque<int> vec1;
deque<int> vec2;
deque<int> vec3;
}struct_deques;
deque<struct_deques> nestedVecs;
However, when I want to access the size of the first deque, after filling it with data, it is possible with:
nestedVec.size();
But if I want to get the size of a nested deque, I am getting 0:
nestedVec.vec1.size();
There is data in it and I can access it, but I can not get the size. Is there a way to get the size of a nested deque?