Skip to content

num::structures::debug::check_index_bounds

Defined in header <structures/debug.hpp>

template <std::integral Index>
void check_index_bounds(Index index, Index capacity, std::string_view label = "Index",
                        std::source_location loc = std::source_location::current());

Verify index is within valid capacity bounds [0, capacity).