summaryrefslogtreecommitdiffhomepage
path: root/README.md
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-03-31 13:25:30 +0200
committerAmlal El Mahrouss <amlal@nekernel.org>2025-03-31 13:25:34 +0200
commitf85c4ecaea1efe3591ea3eb340a3d3468c71d98b (patch)
tree5e613649d135978df5416df8ecb3174c7e4ba13b /README.md
parent67ab14c72982fbd806b363a581b2b5518269a552 (diff)
meta: update README with a brief and better code snippet.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'README.md')
-rw-r--r--README.md25
1 files changed, 25 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..8cc6e76
--- /dev/null
+++ b/README.md
@@ -0,0 +1,25 @@
+# Amlal's Standard Extended
+
+[![License: GPL-2.0](https://img.shields.io/badge/license-GPL--2.0-blue.svg)](LICENSE)
+
+## Brief:
+
+A C++ library with additional modules for your C++ SDLC.
+
+## Getting Started:
+
+Here is an example of how astdx::opt works.
+
+```cpp
+#include <astdx/opt.hpp>
+
+int main(int argc, char** argv)
+{
+ auto opt = astdx::opt(astdx::eval_eq(50, 50)).expect("astdx::eval_eq, does not match!");
+ opt = astdx::opt(astdx::eval_eq(50, 40));
+ opt.expect("this time it doesn't.");
+
+ return 0;
+}
+```
+