#include <iostream>
#include <string>
#include <vector>

typedef std::vector<int>::const_iterator VectIter;

bool find (VectIter begin, VectIter end, int value)
{
        while (begin != end)
        {
                if (*begin == value)
                        return true;
                begin++;
        }
        return false;
}

int main()
{
        std::vector<int> v = {1, 2, 3, 4, 5, 6, 7};
        std::vector<int>::const_iterator it = v.begin();

        std::cout << find (v.begin(), v.end(), 4) << std::endl;
        std::cout << find (v.begin(), v.begin(), 1) << std::endl;
        std::cout << find (v.begin(), v.end(), 13) << std::endl;
}
