We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e33d092 commit 7ea92f4Copy full SHA for 7ea92f4
include/cliutils/custom_util.hpp
@@ -0,0 +1,11 @@
1
+#pragma once
2
+#include <string>
3
+
4
+namespace cliutils {
5
6
+// Returns the reverse of a given string
7
+inline std::string reverse_string(const std::string &input) {
8
+ return std::string(input.rbegin(), input.rend());
9
+}
10
11
0 commit comments