• Steve O'Brien's avatar
    folly: iterator classes (1/3): add minimal facade/adaptor classes + test · 55ec604d
    Steve O'Brien authored
    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
    55ec604d
CMakeLists.txt 28.6 KB