summaryrefslogtreecommitdiff
path: root/louloulibs/utils/revstr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'louloulibs/utils/revstr.cpp')
-rw-r--r--louloulibs/utils/revstr.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/louloulibs/utils/revstr.cpp b/louloulibs/utils/revstr.cpp
new file mode 100644
index 0000000..87fd801
--- /dev/null
+++ b/louloulibs/utils/revstr.cpp
@@ -0,0 +1,9 @@
+#include <utils/revstr.hpp>
+
+namespace utils
+{
+ std::string revstr(const std::string& original)
+ {
+ return {original.rbegin(), original.rend()};
+ }
+}