aboutsummaryrefslogtreecommitdiff
path: root/libbutl/utility.mxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-07-20 15:30:22 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-07-20 15:30:22 +0200
commitee7025cc315e64c043b6a72116b83478f33d7aa9 (patch)
tree6ae3ed2dd27d053e7ae3c408db38eb6a427b71cd /libbutl/utility.mxx
parent8f63b9971ac6d5a0efa370fd8b294fcffd98fd09 (diff)
Add rvalue overload for trim()
Diffstat (limited to 'libbutl/utility.mxx')
-rw-r--r--libbutl/utility.mxx6
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: