diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-03-31 13:25:30 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-03-31 13:25:34 +0200 |
| commit | f85c4ecaea1efe3591ea3eb340a3d3468c71d98b (patch) | |
| tree | 5e613649d135978df5416df8ecb3174c7e4ba13b /README.md | |
| parent | 67ab14c72982fbd806b363a581b2b5518269a552 (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.md | 25 |
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) + +## 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; +} +``` + |
