Packages / Fedora 44 / Source / rx-ranges

Source Package: rx-ranges (2.0.0-4.fc44)

Simpler ranges for C++17

This is a ranges-like library for C++17 that provides zero-overhead list comprehensions with a pipe-like syntax. Standard containers can be filtered, transformed, passed through various algorithms, optimizing to loops that would not be more efficient if written by hand. The goal is to provide the tools to write more readable loops, where the intent of the programmer is clearly communicated to the reader. Mentally simulating loops is a common but error-prone part of reading other people's code, and indeed your own code from 3 months ago. The library makes heavy use of modern C++17 features, so a compliant C++17 compiler is required. Features: - Arbitrary composability. - Constexpr-friendly. - No unnecessary temporary heap allocations (`foo | sort() | to_vector()` only allocates into the resulting container). - Heap allocation minimization: `reserve()` is used on resulting containers, when possible. - Open-ended generators (non-terminating, infinite ranges). - Re-entrancy: A non-rvalue range can be used multiple times in a function. - Compatible with standard containers (anything that supports `std::begin()` and `std::end()`). - Compatible with standard algorithms (implicit conversion to iterator-like objects). - Simple extensibility with custom range adapters. Just implement the `InputRange` faux-concept. - Non-intrusive `operator|`. The ranges `foo | bar | baz` can be expressed as `baz(bar(foo))`, if using `operator|` would introduce ambiguous overloads. - No dependencies beyond the standard library. - Integration with foreign codebases (override hooks for `std::optional`, `std::remove_cvref_t`, assertions, etc.). Can easily be used as a submodule. - Compiler support for all major compilers (GCC, Clang, MSVC). - Zero-overhead, compared to manually written loops in optimized builds. - Header-only, and single-header. Other than usability concerns, these are the main differences from C++20 ranges: - Bidirectional ranges. Ranges can only be consumed linearly in the forward direction. - Random-access ranges. Ranges can only be consumed linearly in the forward direction. - Internally using iterators. The internal iteration objects are modeled with an "enumerator" concept instead (objects that provide `next()`, `get()`, `at_end()`, etc.), which simplifies custom extensions. Implicit, zero-overhead conversion to iterators is provided for compatibility with standard algorithms and the range-based for loop syntax. - Direct access to the data of underlying contiguous ranges (`data()` etc.).

Package information

Homepage
[https://github.com/simonask/rx-ranges]
License
MIT
Downstream-Paketbetreuer
jjamesObserved Nov 20, 2026 [source]

The following binary packages are built from this source package:

Bekannte Sicherheitslücken

Keine passenden Meldungen in den erfassten Quellen.

Zuletzt synchronisiert:

[CVE-Katalog]

Quellen

  • Authoritative source; repository metadata signature verified

    Signaturnachweis

    44-everything-aarch64:ad124f8125666e9059d7a8180427bdaea80f6286f71140457e5c7edd95883eee

    Repository-signature verification record
    Signed-object SHA-256
    236514c32119ab3c85b81fbb9e5e9d92b07aeba0d19d64c9b4fc9117a1863769
    Keyring revision
    RPM-GPG-KEY-fedora-44-primary
    SHA-256 93642aec521a1e5e96dd715f7ae0ec0850ebc9de09a94ce03cae5263f26cc18a
    Tool and policy
    1
    openfactory-software-catalog-signature-v1
    Verification time
    Sep 1, 2026
    Repository metadata hash linkage
    Result
    Recorded as verified; digest details unavailable
  • Authoritative source; repository metadata signature verified

    Signaturnachweis

    44-everything-x86_64:da3845427d188097f6fd71b417a039bdfb8efefc4f38ca44b5cbb94f95a18991

    Repository-signature verification record
    Signed-object SHA-256
    1300b99ac5d04b5561ad901320c8bd59ed1553f4971c3ce2ca48c40242c66676
    Keyring revision
    RPM-GPG-KEY-fedora-44-primary
    SHA-256 93642aec521a1e5e96dd715f7ae0ec0850ebc9de09a94ce03cae5263f26cc18a
    Tool and policy
    1
    openfactory-software-catalog-signature-v1
    Verification time
    Sep 1, 2026
    Repository metadata hash linkage
    Result
    Recorded as verified; digest details unavailable
  • Curated source

    Source observation

    58c9d374bd00b7d29599f0194ec3b0df45a3cdc0fb8d7352b2a2bf869a32237e

    No repository signature was supplied for this metadata.