forked from mirror/openmw-tes3mp
[General] Allow different types for vectorContains
This commit is contained in:
parent
1f4e6e9114
commit
79903c455c
1 changed files with 2 additions and 2 deletions
|
@ -28,8 +28,8 @@ namespace Utils
|
|||
|
||||
bool compareDoubles(double a, double b, double epsilon);
|
||||
|
||||
template <class Type>
|
||||
bool vectorContains(const std::vector<Type> &vectorChecked, const Type &value)
|
||||
template <class Type, class Type2>
|
||||
bool vectorContains(const std::vector<Type> &vectorChecked, const Type2 &value)
|
||||
{
|
||||
return std::find(vectorChecked.begin(), vectorChecked.end(), value) != vectorChecked.end();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue