Skip to content

Feature: Following STL bounds-check policy #275

@ashvardanian

Description

@ashvardanian

Describe what you are looking for

In integer-receiving interfaces like basic_string_slice::find(string_view,size_type = 0) and find(value_type,size_type = 0) we explicitly document UV if the requested slice is out of bounds, but STL returns an npos. We may want to change that to match STL more closely in the next releases.

Can you contribute to the implementation?

  • I can contribute

Is your feature request specific to a certain interface?

C++ bindings

Contact Details

No response

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions