https://github.com/lb--/optional
My personal implementation of the optional wrapper in C++.
https://github.com/lb--/optional
Last synced: 12 months ago
JSON representation
My personal implementation of the optional wrapper in C++.
- Host: GitHub
- URL: https://github.com/lb--/optional
- Owner: LB--
- License: unlicense
- Created: 2015-09-20T18:17:36.000Z (almost 11 years ago)
- Default Branch: optional
- Last Pushed: 2016-03-22T12:21:58.000Z (over 10 years ago)
- Last Synced: 2025-03-15T03:41:52.253Z (over 1 year ago)
- Language: CMake
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
optional [](https://travis-ci.org/LB--/optional)
========
My personal implementation of `std::optional`/`boost::optional`, just for fun.
## Usage
### CMake
From the `cmake` directory, copy the `FindLB` directory to a place in your `CMAKE_MODULE_PATH`.
Then, add `find_package(LB/optional REQUIRED)` to your CMake script.
You may need to set the CMake variable `LB/optional_ROOT` if you installed to a nonstandard location.
Finally, link to the `LB::optional` imported target with `target_link_libraries()`.
### C++
First `#include `, and then bug LB to finish this TODO.