summaryrefslogtreecommitdiffhomepage
path: root/README.md
blob: b7790c3cf4fc74b177f22ad32d96c4062e51eff8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Open C++ Library

[![License: GPL-2.0](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)

## Brief:

A C++ library with additional modules for your C++ SDLC.

## Requirements:

- Boost C++ libraries (https://www.boost.org/)
- Clang (https://clang.llvm.org/)
- Git (https://git-scm.com/)

## Examples:

### Logic Module (Option container)

```cpp
#include <lib/logic/opt.hpp>

int main(int argc, char** argv)
{
  auto opt = ocl::opt(ocl::eval_eq(50, 50)).expect("ocl::eval_eq, does not match!");
  opt = ocl::opt(ocl::eval_eq(50, 40));
  opt.expect("this time it doesn't.");
  
  return EXIT_SUCCESS;
}
```

##### (c) 2025 Amlal El Mahrouss, licensed under the MIT license.