summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAmlal El Mahrouss <113760121+Amllx@users.noreply.github.com>2023-04-25 13:26:56 +0200
committerGitHub <noreply@github.com>2023-04-25 13:26:56 +0200
commit219c6a2d0cb93534eb4cee96c86aeab01ac6f58b (patch)
treedd5e8368e7f2570c7741b2f8b074404f63298332
parenta5772354fe1dccfcdabc91ed6d7393bf901e0487 (diff)
meta: Create Readme.md
-rw-r--r--Readme.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/Readme.md b/Readme.md
new file mode 100644
index 0000000..645c86f
--- /dev/null
+++ b/Readme.md
@@ -0,0 +1,16 @@
+# Here is an example of how stdx::opt works.
+
+```cpp
+#include "stdx"
+
+int main(int argc, char** argv)
+{
+ auto opt = stdx::opt(stdx::eval_eq(50, 50)).expect("stdex::eval_eq, does not match!");
+ opt = stdx::opt(stdx::eval_eq(50, 40));
+ opt.expect("this time it doesn't.");
+
+ return 0;
+}
+```
+
+# Licensed under GPL-2