-
February 28th, 2021, 08:51 AM
#1
do while with find_if
Hello,
Code:
std::map<int, bool > m_TacToAssignFlag;
auto itr = m_TacToAssignFlag.begin();
do
{
################
some more code here
################
bool bTacAssignCompl(false);
auto itr = std::find_if(m_TacToAssignFlag.begin(), m_TacToAssignFlag.end(), [bTacAssignCompl](const auto& elem) {return elem.second == bTacAssignCompl; }) ;
} while(itr != m_TacToAssignFlag.end());
In the above code, when the itr is m_TacToAssignFlag.end(), it still goes inside.
i used the find_if, to check , if any values in the map, is false..
Not sure what i am doing wrong
thanks a lot
pdk
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|