]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common: add (tweaked) sstring.h
authorMatt Benjamin <mbenjamin@redhat.com>
Sat, 19 Dec 2015 21:01:44 +0000 (16:01 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Fri, 12 Feb 2016 17:07:01 +0000 (12:07 -0500)
commitef6367fc35204c35c76160e06dd3a44e8ff2644b
tree09c194cad8840331e1676fc5e0b8bc84900394ab
parent6147c3e526f28ef66eac81057c1ff13a5229e4c1
common: add (tweaked) sstring.h

Add sstring.h from Seastar, slightly adapted for c++2011 and
boost::string_ref.

An sstring resembles std::string, but the size of its small-string
optimization (static allocation) is controlled by a template
argument (cf. small_vector).

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/common/sstring.hh [new file with mode: 0644]