From ee7025cc315e64c043b6a72116b83478f33d7aa9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 20 Jul 2018 15:30:22 +0200 Subject: Add rvalue overload for trim() --- libbutl/utility.mxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libbutl/utility.mxx') diff --git a/libbutl/utility.mxx b/libbutl/utility.mxx index ee2aed7..1c457f5 100644 --- a/libbutl/utility.mxx +++ b/libbutl/utility.mxx @@ -145,6 +145,12 @@ LIBBUTL_MODEXPORT namespace butl LIBBUTL_SYMEXPORT std::string& trim (std::string&); + inline std::string + trim (std::string&& s) + { + return move (trim (s)); + } + // Find the beginning and end poistions of the next word. Return the size // of the word or 0 and set b = e = n if there are no more words. For // example: -- cgit v1.1