From: Samuel Just Date: Mon, 7 Jun 2021 20:14:45 +0000 (-0700) Subject: crimson/common/fixed_kv_node_layout: add reference type for do_for_each implementations X-Git-Tag: v17.1.0~1567^2~25 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=afa5d90ba3dae2d4fc2ca6e7ebb6cbd44fcfa0ca;p=ceph-ci.git crimson/common/fixed_kv_node_layout: add reference type for do_for_each implementations Signed-off-by: Samuel Just --- diff --git a/src/crimson/common/fixed_kv_node_layout.h b/src/crimson/common/fixed_kv_node_layout.h index 4c7cc2e76a4..75cddb3f010 100644 --- a/src/crimson/common/fixed_kv_node_layout.h +++ b/src/crimson/common/fixed_kv_node_layout.h @@ -76,6 +76,7 @@ public: } // Work nicely with for loops without requiring a nested type. + using reference = iter_t&; iter_t &operator*() { return *this; } iter_t *operator->() { return this; }