https://github.com/dup4/result-cpp
Result and ResultOr<T> for modern cpp
https://github.com/dup4/result-cpp
cpp result resultor
Last synced: about 1 year 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 (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-09-24T03:59:55.000Z (over 2 years ago)
- Last Synced: 2025-02-04T12:47:18.370Z (over 1 year 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
[](https://github.com/Dup4/result-cpp/actions/workflows/clang_format.yml)
[](https://github.com/Dup4/result-cpp/actions/workflows/test.yml)
[](https://codecov.io/gh/Dup4/result-cpp)
[](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