]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
StackStringStream: add strv method short-cut
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 18 Dec 2018 21:06:04 +0000 (13:06 -0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Tue, 18 Dec 2018 21:20:52 +0000 (13:20 -0800)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/common/StackStringStream.h

index 32ce245f8925bae16245488e4d56435649172542..5eaea7e8d6b5a46c1e25cb56f9769765cb395463 100644 (file)
@@ -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;