From: Patrick Donnelly Date: Tue, 18 Dec 2018 21:06:04 +0000 (-0800) Subject: StackStringStream: add strv method short-cut X-Git-Tag: v14.1.0~550^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f34df5962f97d5cf61a9772f3dc293c812d9fb42;p=ceph.git StackStringStream: add strv method short-cut Signed-off-by: Patrick Donnelly --- diff --git a/src/common/StackStringStream.h b/src/common/StackStringStream.h index 32ce245f8925..5eaea7e8d6b5 100644 --- a/src/common/StackStringStream.h +++ b/src/common/StackStringStream.h @@ -134,6 +134,9 @@ public: const sss& get_stream() const { return *osp; } + std::string_view strv() const { + return osp->strv(); + } private: static constexpr std::size_t max_elems = 8;