diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/nfs/Cancellable.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/nfs/Cancellable.hxx b/src/lib/nfs/Cancellable.hxx index 1f287c329..be4527ac3 100644 --- a/src/lib/nfs/Cancellable.hxx +++ b/src/lib/nfs/Cancellable.hxx @@ -150,6 +150,13 @@ public: i->Cancel(); } + + CT &Get(reference_type p) { + auto i = Find(p); + assert(i != list.end()); + + return *i; + } }; #endif |