diff options
| author | Amlal El Mahrouss <113760121+Amllx@users.noreply.github.com> | 2023-04-25 13:26:56 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-25 13:26:56 +0200 |
| commit | 219c6a2d0cb93534eb4cee96c86aeab01ac6f58b (patch) | |
| tree | dd5e8368e7f2570c7741b2f8b074404f63298332 | |
| parent | a5772354fe1dccfcdabc91ed6d7393bf901e0487 (diff) | |
meta: Create Readme.md
| -rw-r--r-- | Readme.md | 16 |
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 |
