So I need some help, I am working with an STL list,std::list<Node> linkedList = std::list<Node>{50}; howcan i iterate througth the list and look for empty or nodes thatare false only in between, For example after i have filled my listrandomly, i want to check for nodes that are not in use,xxx0xxx00xx000xxxxx = 3 (x=in use 0=empty) and 000xx00xx00x00000endof list. = 2.
I am trying to count the group of nodes that are in between thatare not in used. I hope this make sense.
I am using a struct such that:
and my list:
So I need some help, I am working with an STL list, std::list linkedList = std::list{50}; how can i iterate
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am