mirror of
https://bitbucket.org/Mattrixwv/my-classes.git
synced 2026-02-03 19:02:28 -05:00
Fixed error with problem 2 not compiling
This commit is contained in:
@@ -260,7 +260,7 @@ T getProduct(const std::vector<T>& ary){
|
|||||||
//This is a function that searches a vecter for an element. Returns true if they key is found in list
|
//This is a function that searches a vecter for an element. Returns true if they key is found in list
|
||||||
template <class T>
|
template <class T>
|
||||||
bool isFound(std::vector<T> ary, T key){
|
bool isFound(std::vector<T> ary, T key){
|
||||||
std::vector<T>::iterator location = std::find(ary.begin(), ary.end(), key);
|
typename std::vector<T>::iterator location = std::find(ary.begin(), ary.end(), key);
|
||||||
if(location == ary.end()){
|
if(location == ary.end()){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user