Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dup4/result-cpp
Result and ResultOr<T> for modern cpp
https://github.com/dup4/result-cpp
cpp result resultor
Last synced: 15 days ago
JSON representation
Result and ResultOr<T> for modern cpp
- Host: GitHub
- URL: https://github.com/dup4/result-cpp
- Owner: Dup4
- License: mit
- Created: 2022-07-03T13:48:00.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-24T03:59:55.000Z (about 1 year ago)
- Last Synced: 2024-05-02T05:50:18.051Z (6 months ago)
- Topics: cpp, result, resultor
- Language: C++
- Homepage:
- Size: 170 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# result-cpp
[![Clang Format](https://github.com/Dup4/result-cpp/workflows/Clang%20Format/badge.svg)](https://github.com/Dup4/result-cpp/actions/workflows/clang_format.yml)
[![Test](https://github.com/Dup4/result-cpp/workflows/Test/badge.svg)](https://github.com/Dup4/result-cpp/actions/workflows/test.yml)
[![codecov](https://codecov.io/gh/Dup4/result-cpp/branch/main/graph/badge.svg)](https://codecov.io/gh/Dup4/result-cpp)
[![GitHub release](https://img.shields.io/github/release/Dup4/result-cpp.svg)](https://github.com/Dup4/result-cpp/releases/)## Integration
### CMake
```cmake
FetchContent_Declare(
result-cpp
QUIET
GIT_REPOSITORY https://github.com/Dup4/result-cpp.git
GIT_TAG v{x.y.z} # Where `x.y.z` is the release version you want to use.
)
```### Bazel
```bazel
git_repository(
name = "result-cpp",
remote = "https://github.com/Dup4/result-cpp.git",
tag = "v{x.y.z}", # Where `x.y.z` is the release version you want to use.
)
```## Usage
See the usage in the [unit test](./test/result_test.cc)
## License
[MIT](./LICENSE) License © 2022 - PRESENT [Dup4][dup4]
[dup4]: https://github.com/Dup4