ceph/ceph-ansible

Is it possible to have unequal return values for begin() and end() when the unordered_map container is empty?

Bingo0203 opened this issue · 0 comments

When clearing the fd_map container, the container is already empty and still enters the for loop , not sure why. For C++ unordered_map container, if the container is empty, will begin!=end exist? If so, how to avoid it?