Skip to content

Instantly share code, notes, and snippets.

View yanzihong060223's full-sized avatar
🎯
Focusing

yan yanzihong060223

🎯
Focusing
View GitHub Profile
@yanzihong060223
yanzihong060223 / custom_iterator.cpp
Created August 20, 2026 13:15 — 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>