Any interest to `boost::find_gap` function?
未关闭
- 主要语言
- C++
- 星标
- 131
- 派生
- 117
- PR 合并指标
- 30 天内没有已合并 PR
描述
```
std::vector nums = {6,7,8,10,11}; // lost 9
boost::find_gap(nums, 6); // will point to value 10 at index 3
```
This function is useful for validating sorted data that are expected to be consecutive integers, for example - packet ids that might be lost, unix timestamps in a video archive that might be sparsed, etc..
贡献指南
这个仓库没有索引到贡献指南
调研方向
The issue names no files, tests, or entry points in the Boost.Algorithm module. Start by reviewing the issue and the module's existing algorithm conventions; done requires an agreed API and behavior for finding a gap in sorted consecutive integers, with tests covering the stated example and relevant edge cases.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- cpp
- 领域
- tooling
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 30/100