cpp-lazy
« Back to VersTracker
Description:
C++11 (and onwards) library for lazy evaluation
Type: Formula  |  Latest Version: 8.0.1@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: c++ library lazy-evaluation header-only ranges
Install: brew install cpp-lazy
About:
cpp-lazy is a header-only C++ library that enables lazy evaluation patterns for sequences and iterators. It provides range-based utilities similar to C++20 ranges but compatible with C++11, allowing efficient processing of large datasets without intermediate storage. The library focuses on performance and ease of integration via a single include.
Key Features:
  • Header-only design for zero-dependency integration
  • Lazy evaluation of sequences to optimize memory and compute
  • C++11 compatibility with modern range and iterator utilities
Use Cases:
  • Processing large data streams without loading everything into memory
  • Implementing functional-style pipelines in performance-critical C++ code
  • Backporting C++20 range features to older C++11/14 projects
Alternatives:
  • C++20 Ranges – Native standard library but requires C++20; cpp-lazy provides similar functionality for C++11+
  • Boost.Range – Heavier dependency; cpp-lazy is lightweight and header-only
Version History
Detected Version Rev Change Commit