folly: iterator classes (1/3): add minimal facade/adaptor classes + test
Summary: Iterator helper classes are used in several places around Folly; they're convenient because they take care of some of the details while letting your class provide only a few of the necessary pieces. Boost has `iterator_facade` and `iterator_adaptor` to help in these cases, but the header for these classes are absurdly expensive to include (their transitive includee tree is quite large). For this reason, we'll add similar helper classes, with minimal dependencies, under detail. In subsequent diffs we'll migrate some existing code using these boost classes (or implementing iterators itself) to use these helpers. Reviewed By: yfeldblum Differential Revision: D8345073 fbshipit-source-id: 3e6656e544349fe228358074de30c89c805e2628
Showing
folly/detail/Iterators.h
0 → 100644
folly/test/IteratorsTest.cpp
0 → 100644
Please register or sign in to comment