C++ Server-Side SDK
LaunchDarkly SDK
iter.hpp
1 #pragma once
2 
3 // C++ utility for wrapping iterators.
4 // Only should be utilized within the implementation of bindings.
5 
6 #ifdef __cplusplus
7 
8 template <typename TIterator>
9 struct IteratorBinding {
10  TIterator iter;
11  TIterator end;
12 
13  bool End() { return iter == end; }
14 
15  void Next() { iter++; }
16 };
17 
18 #endif