https://github.com/mgood7123/anyopt
a combined C++11 implementation of std::any and std::optional, with built-in memory allocation management
https://github.com/mgood7123/anyopt
std
Last synced: 11 months ago
JSON representation
a combined C++11 implementation of std::any and std::optional, with built-in memory allocation management
- Host: GitHub
- URL: https://github.com/mgood7123/anyopt
- Owner: mgood7123
- Created: 2020-08-09T01:49:16.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-04-19T04:58:49.000Z (almost 3 years ago)
- Last Synced: 2025-01-05T13:22:53.027Z (about 1 year ago)
- Topics: std
- Language: C++
- Homepage:
- Size: 17.2 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AnyOpt
AnyOpt (Any Optional) is a C++11 compatible library
this header-only library was primarily developed due to the requirements of my resource manager:
* being able to store any type
* being able to automatically free the resource stored upon object death
* being able to determine if anything is actually stored or not, since nullptr is a valid storage
# cloning
## as a non-submodule
```shell script
git clone --recursive https://github.com/mgood7123/AnyOpt
```
## as a submodule
```shell script
git submodule add https://github.com/mgood7123/AnyOpt path/where/AnyOpt/should/reside/AnyOpt
git submodule update --init --recursive
```
# building and testing
```shell script
make test_debug
```