boost/libs/leaf
2021-10-05 21:37:46 +02:00
..
benchmark [DEV] add v1.76.0 2021-10-05 21:37:46 +02:00
doc [DEV] add v1.76.0 2021-10-05 21:37:46 +02:00
examples [DEV] add v1.76.0 2021-10-05 21:37:46 +02:00
gen [DEV] add v1.76.0 2021-10-05 21:37:46 +02:00
meta [DEV] add v1.76.0 2021-10-05 21:37:46 +02:00
subprojects [DEV] add v1.76.0 2021-10-05 21:37:46 +02:00
test [DEV] add v1.76.0 2021-10-05 21:37:46 +02:00
CMakeLists.txt [DEV] add v1.76.0 2021-10-05 21:37:46 +02:00
index.html [DEV] add v1.76.0 2021-10-05 21:37:46 +02:00
LICENSE_1_0.txt [DEV] add v1.76.0 2021-10-05 21:37:46 +02:00
meson_options.txt [DEV] add v1.76.0 2021-10-05 21:37:46 +02:00
meson.build [DEV] add v1.76.0 2021-10-05 21:37:46 +02:00
README.md [DEV] add v1.76.0 2021-10-05 21:37:46 +02:00
wasm.txt [DEV] add v1.76.0 2021-10-05 21:37:46 +02:00

LEAF

A lightweight error handling library for C++11.

Documentation

https://boostorg.github.io/leaf/

Features

  • Small single-header format, no dependencies.
  • Designed for maximum efficiency ("happy" path and "sad" path).
  • No dynamic memory allocations, even with heavy payloads.
  • O(1) transport of arbitrary error types (independent of call stack depth).
  • Can be used with or without exception handling.
  • Support for multi-thread programming.

Support

Distribution

Besides GitHub, there are two other distribution channels:

  • LEAF is included in official Boost releases, starting with Boost 1.75.
  • For maximum portability, the library is also available in single-header format: simply download leaf.hpp (direct download link).

Copyright (C) 2018-2021 Emil Dotchevski. Distributed under the http://www.boost.org/LICENSE_1_0.txt[Boost Software License, Version 1.0].