Skip to content

Instantly share code, notes, and snippets.

View hkovacevic2's full-sized avatar
🐢

Hamza Kovačević hkovacevic2

🐢
View GitHub Profile
@hkovacevic2
hkovacevic2 / custom_iterator.cpp
Created November 17, 2020 01:05 — forked from jeetsukumaran/custom_iterator.cpp
Sample C++/STL custom iterator
// Sample custom iterator.
// By perfectly.insane (http://www.dreamincode.net/forums/index.php?showuser=76558)
// From: http://www.dreamincode.net/forums/index.php?showtopic=58468
#include <iostream>
#include <vector>
#include <algorithm>
#include <iterator>
#include <cassert>