Browse Source

findKey returns success in found parameter

Henning Koehler 7 years ago
parent
commit
04925314f8
1 changed files with 6 additions and 0 deletions
  1. 6 0
      Global.h

+ 6 - 0
Global.h

@@ -376,8 +376,14 @@ namespace vstd
 		for(auto iter = map.cbegin(); iter != map.cend(); iter++)
 		for(auto iter = map.cbegin(); iter != map.cend(); iter++)
 		{
 		{
 			if(iter->second == value)
 			if(iter->second == value)
+			{
+				if(found)
+					*found = true;
 				return iter->first;
 				return iter->first;
+			}
 		}
 		}
+		if(found)
+			*found = false;
 		return Key();
 		return Key();
 	}
 	}