Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: johnBuffer/StableIndexVector
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: hlide/StableIndexVector
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 5 commits
  • 2 files changed
  • 1 contributor

Commits on Feb 8, 2026

  1. Refactor API to STL naming convention and expand std::vector interface

    Fix critical bugs (double-erase UB, isValid out-of-bounds, handle
    dangling pointer, uint32_t truncation) and rename all public API to
    snake_case (Vector->vector, Handle->handle, ID->id_type, etc.).
    
    Add std::vector-compatible interface: type aliases, at(), front(),
    back(), reverse iterators, cbegin/cend, max_size(), shrink_to_fit(),
    pop_back(), push_back(T&&), comparison operators, and free function
    siv::erase_if(). Make vector non-copyable/non-movable, add generation-
    based handle validation, and support -fno-exceptions builds.
    hlide committed Feb 8, 2026
    Configuration menu
    Copy the full SHA
    d5c49b2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c0e5792 View commit details
    Browse the repository at this point in the history
  3. Fix remaining moderate issues from audit

    - Make handle constructor private (only vector<T> can construct)
    - Add bounds-check asserts in generation() and index_of()
    - Add [[nodiscard]] on push_back/emplace_back
    - Fix get_free_id() exception safety with reserve-before-modify
    - Use inline constexpr for invalid_id (proper C++17 linkage)
    - Document comparison operators data-order semantics
    - Fix README: e.health typo, clarify -fno-exceptions wording
    hlide committed Feb 8, 2026
    Configuration menu
    Copy the full SHA
    1d69f5d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    17552d1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7b00ec2 View commit details
    Browse the repository at this point in the history
Loading