summaryrefslogtreecommitdiff
path: root/src/compat/iter.hpp
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2014-06-26 21:59:27 -0700
committerBen Longbons <b.r.longbons@gmail.com>2014-06-26 22:28:22 -0700
commit2f4fc005937e75d931eb6ef87a3fe16364d45113 (patch)
tree2a60ea7b58e9a3045ec0e0754e075ae958e46409 /src/compat/iter.hpp
parentf5fcb973cfad6221264a2a859f5236c3cef2c470 (diff)
downloadtmwa-2f4fc005937e75d931eb6ef87a3fe16364d45113.tar.gz
tmwa-2f4fc005937e75d931eb6ef87a3fe16364d45113.tar.bz2
tmwa-2f4fc005937e75d931eb6ef87a3fe16364d45113.tar.xz
tmwa-2f4fc005937e75d931eb6ef87a3fe16364d45113.zip
Stick everything in a namespace
Diffstat (limited to 'src/compat/iter.hpp')
-rw-r--r--src/compat/iter.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compat/iter.hpp b/src/compat/iter.hpp
index 08c139e..7ed24da 100644
--- a/src/compat/iter.hpp
+++ b/src/compat/iter.hpp
@@ -24,6 +24,8 @@
# include <iterator>
+namespace tmwa
+{
/// Simple class to use a pair of iterators with foreach
template<class It>
class IteratorPair
@@ -149,5 +151,6 @@ IteratorPair<FilterIterator<T, F, C>> filter_iterator(C *c, F f=is_truthy<T>)
{
return {FilterIterator<T, F, C>(c, f), FilterIterator<T, F, C>(c, f)};
}
+} // namespace tmwa
#endif // TMWA_COMPAT_ITER_HPP