summaryrefslogtreecommitdiff
path: root/tests/run/cpp_iterators_simple.h
blob: 3a4b50e3c9e0b4b36e7ec8a072dec854a4f510c2 (plain)
1
2
3
4
5
6
7
8
9
10
class DoublePointerIter {
public:
    DoublePointerIter(double* start, int len) : start_(start), len_(len) { }
    double* begin() { return start_; }
    double* end() { return start_ + len_; }
private:
    double* start_;
    int len_;
};