MCPcopy Create free account
hub / github.com/boostorg/leaf

github.com/boostorg/leaf @boost-1.91.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release boost-1.91.0 ↗ · + Follow
1,301 symbols 2,747 edges 178 files 36 documented · 3% updated 2mo agoboost-1.82.0 · 2023-05-14★ 3391 open issues

Browse by type

Functions 786 Types & classes 515
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

LEAF

A lightweight error handling library for C++11.

Documentation

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

Features

  • Portable single-header format, no dependencies.
  • Tiny code size, configurable for embedded development.
  • No dynamic memory allocations, even with very large payloads.
  • Deterministic unbiased efficiency on the "happy" path and the "sad" path.
  • Error objects are handled in constant time, independent of call stack depth.
  • Can be used with or without exception handling.

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: leaf.hpp.

Copyright 2018-2025 Emil Dotchevski and Reverge Studios, Inc. Distributed under the http://www.boost.org/LICENSE_1_0.txt[Boost Software License, Version 1.0].

Core symbols most depended-on inside this repo

Shape

Function 489
Class 487
Method 297
Enum 28

Languages

C++99%
Python1%

Modules by API surface

include/boost/leaf/handle_errors.hpp81 symbols
include/boost/leaf/error.hpp81 symbols
include/boost/leaf/context.hpp65 symbols
include/boost/leaf/config/tls_win32.hpp48 symbols
include/boost/leaf/result.hpp41 symbols
include/boost/leaf/on_error.hpp37 symbols
include/boost/leaf/detail/mp11.hpp33 symbols
test/boost/core/lightweight_test.hpp32 symbols
include/boost/leaf/pred.hpp32 symbols
include/boost/leaf/detail/diagnostics_writer.hpp26 symbols
include/boost/leaf/detail/demangle.hpp21 symbols
test/diagnostics_test1.cpp20 symbols

For agents

$ claude mcp add leaf \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page