diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-07-20 15:30:22 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-07-20 15:30:22 +0200 |
commit | ee7025cc315e64c043b6a72116b83478f33d7aa9 (patch) | |
tree | 6ae3ed2dd27d053e7ae3c408db38eb6a427b71cd | |
parent | 8f63b9971ac6d5a0efa370fd8b294fcffd98fd09 (diff) |
Add rvalue overload for trim()
-rw-r--r-- | libbutl/utility.mxx | 6 |
1 files changed, 6 insertions, 0 deletions
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: |