You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by tn...@apache.org on 2016/01/18 23:48:19 UTC

mesos git commit: Added reverse_foreach in libprocess.

Repository: mesos
Updated Branches:
  refs/heads/master e2963966a -> f51fa7fcb


Added reverse_foreach in libprocess.


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/f51fa7fc
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/f51fa7fc
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/f51fa7fc

Branch: refs/heads/master
Commit: f51fa7fcb305986d237b408aeb1d456d31b4d635
Parents: e296396
Author: Timothy Chen <tn...@gmail.com>
Authored: Fri Jan 15 17:26:58 2016 -0800
Committer: Timothy Chen <tn...@apache.org>
Committed: Mon Jan 18 14:48:13 2016 -0800

----------------------------------------------------------------------
 3rdparty/libprocess/3rdparty/stout/include/stout/foreach.hpp | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/f51fa7fc/3rdparty/libprocess/3rdparty/stout/include/stout/foreach.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/3rdparty/stout/include/stout/foreach.hpp b/3rdparty/libprocess/3rdparty/stout/include/stout/foreach.hpp
index 7fb0044..eebb463 100644
--- a/3rdparty/libprocess/3rdparty/stout/include/stout/foreach.hpp
+++ b/3rdparty/libprocess/3rdparty/stout/include/stout/foreach.hpp
@@ -52,10 +52,15 @@ swallow_assign const ignore = swallow_assign();
 #define foreach BOOST_FOREACH
 #define foreachpair BOOST_FOREACH_PAIR
 
+#define reverse_foreach BOOST_REVERSE_FOREACH
+
 #define foreachkey(VAR, COL)                    \
   foreachpair (VAR, __foreach__::ignore, COL)
 
 #define foreachvalue(VAR, COL)                  \
   foreachpair (__foreach__::ignore, VAR, COL)
 
+// TODO(tnachen): Add reverse_foreachkey, reverse_foreachvalue and
+// reverse_foreachpair.
+
 #endif // __STOUT_FOREACH_HPP__