Ross ROSS = Recommend OSS · open-source software intelligence for agents

TartanLlama/expected

C++11/14/17 std::expected with functional-style extensions observed · 2026-08-28

github.com/TartanLlama/expected · homepage · C++ · CC0-1.0 (permissive) observed · 2026-08-28

Health v2 · maintenance only

53/100

  • Activity 39
  • Release rhythm 45
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: 25.0
  • age_days: 3234
  • days_rel: 366
  • days_push: 366
  • n_releases_24m: 3

Full methodology

Adoption not part of the score

1879 stars · 161 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A single-header C++11/14/17 implementation of std::expected with functional-style extensions like map, and_then, and or_else. It lets developers represent values that either succeed or carry error information and chain fallible computations cleanly.

Use cases

  • represent success-or-error return values in C++ without exceptions
  • chain fallible computations with monadic composition
  • backport std::expected to C++11/14/17 projects
  • replace verbose error-checking code with map/and_then pipelines
  • handle parse results with typed error reasons

When to choose

  • you need std::expected semantics on pre-C++23 compilers
  • you want a dependency-free single-header error handling utility
  • you prefer functional-style error propagation over exceptions or error codes

When to avoid

  • your toolchain already ships std::expected (C++23)
  • you want a full-fledged result/error framework with rich diagnostics
  • your codebase style mandates exceptions for error handling

Facets

library · maturity stable

error-handling developer-tools developer-tools programming-languages cpp cross-platform single-header std-expected functional-programming c++11 header-only algorithms

1 source

Member repositories

RepositoryRoleHealth v2
TartanLlama/expectedmain53

For agents

markdown · JSON · MCP: product_card(name="TartanLlama/expected")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem