]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common: add simplified interfaces to get_str_*
authorCasey Bodley <cbodley@redhat.com>
Fri, 3 Nov 2017 20:24:22 +0000 (16:24 -0400)
committerCasey Bodley <cbodley@redhat.com>
Fri, 10 Nov 2017 16:05:45 +0000 (11:05 -0500)
commit0b39e47016a425b17435ba4d0e47d231768c76fc
treef729d48447fddcbb39b2d7bf0a1576abdcc5950c
parentcbf06de900eb16183ce1a6cc1f0f91c60a92a095
common: add simplified interfaces to get_str_*

the simpler interfaces rely on return value optimization to avoid
copying the result. removing the container from the argument list makes
it easier to provide a default argument for 'delims'

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/common/str_list.cc
src/include/str_list.h