Om
collection_front_source.cpp
Go to the documentation of this file.
1 
15 #ifndef Om_Source_CollectionFrontSource_
16 
18 
19 #else
20 
21 // MARK: - Om::Source::CollectionFrontSource
22 
23  #define Template_ \
24  template < \
25  typename ThisItem, \
26  typename ThisIterator \
27  >
28 
29  #define Type_ \
30  Om::Source::CollectionFrontSource< \
31  ThisItem, \
32  ThisIterator \
33  >
34 
35 // MARK: public (non-static)
36 
37 Template_
38 template <typename TheCollection>
39 inline Type_::CollectionFrontSource(TheCollection & theCollection):
40 IteratorPairSource<
41  ThisItem,
42  ThisIterator
43 >(
44  theCollection.begin(),
45  theCollection.end()
46 ) {}
47 
48  #undef Type_
49  #undef Template_
50 
51 #endif