aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/nfs/Cancellable.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-12-15 00:46:56 +0100
committerMax Kellermann <max@duempel.org>2014-12-15 00:46:56 +0100
commitadfc5db3d2bf0d7df972a687b1510db159b9137c (patch)
treed0b46d10fa1e655211f92f6a5f5f581876a9a0db /src/lib/nfs/Cancellable.hxx
parent3f32a6b6071c61543f8a5179fdd6900e1362cbd6 (diff)
parenta48704925d6c3e5c01057192403e55f3663b315c (diff)
downloadmpd-adfc5db3d2bf0d7df972a687b1510db159b9137c.tar.gz
mpd-adfc5db3d2bf0d7df972a687b1510db159b9137c.tar.xz
mpd-adfc5db3d2bf0d7df972a687b1510db159b9137c.zip
Merge branch 'v0.19.x'
Diffstat (limited to 'src/lib/nfs/Cancellable.hxx')
-rw-r--r--src/lib/nfs/Cancellable.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/nfs/Cancellable.hxx b/src/lib/nfs/Cancellable.hxx
index be4527ac3..151be0528 100644
--- a/src/lib/nfs/Cancellable.hxx
+++ b/src/lib/nfs/Cancellable.hxx
@@ -157,6 +157,12 @@ public:
return *i;
}
+
+ template<typename F>
+ void ForEach(F &&f) {
+ for (CT &i : list)
+ f(i);
+ }
};
#endif