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