forked from teamnwah/openmw-tes3coop
[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);
|
bool compareDoubles(double a, double b, double epsilon);
|
||||||
|
|
||||||
template <class Type>
|
template <class Type, class Type2>
|
||||||
bool vectorContains(const std::vector<Type> &vectorChecked, const Type &value)
|
bool vectorContains(const std::vector<Type> &vectorChecked, const Type2 &value)
|
||||||
{
|
{
|
||||||
return std::find(vectorChecked.begin(), vectorChecked.end(), value) != vectorChecked.end();
|
return std::find(vectorChecked.begin(), vectorChecked.end(), value) != vectorChecked.end();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue