blob: 203390e0341452992c3748136e983c7aa1a603f6 (
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
33
34
|
# Open C++ Library
[](LICENSE)
A set of containers in C++ for developers.<br/>
You use them to speed up your development cycle for C++ applications.
## Requirements:
The OCL requires the following:
- [Boost](https://www.boost.org/)
- [Clang](https://clang.llvm.org/)
- [CMake](https://cmake.org/)
- [Git](https://git-scm.com/)
### Example: The Option container
Evaluates whether an expression is passing the options.
```cpp
#include <logic/option.hpp>
int main(int argc, char** argv)
{
auto opt = ocl::option(ocl::eval_eq(50, 50)).expect("ocl::eval_eq, does not match!");
opt = ocl::option(ocl::eval_eq(50, 40));
opt.expect("this time it doesn't.");
return EXIT_SUCCESS;
}
```
##### (c) 2025 Amlal El Mahrouss, licensed under the Boost Software License.
|