Skip to content

This is a generic Option and Result type based on c++ std::variant, similar to Option and Result<T,E> in Rust.

Notifications You must be signed in to change notification settings

FlowLoveV/utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This is a generic Option and Result type based on c++ std::variant, similar to Option and Result<T,E> in Rust.

The library cpptrace is used to automatically track the stack for easy error checking instead of using exceptions

How to use

  1. Integrate cpptrace into your own library
  2. just include the option.hpp or result.hpp

Test

xmake
xmake run test_option
xmake run test_result

About

This is a generic Option and Result type based on c++ std::variant, similar to Option and Result<T,E> in Rust.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published