Skip to content

Proposed specification for gsl::dyn_array #2261

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

carsonRadtke
Copy link

@carsonRadtke carsonRadtke commented Mar 3, 2025

@hsutter
Copy link
Contributor

hsutter commented Apr 15, 2025

Editors call: Thanks, looks good but please:

  • @GabrielDosReis add a note that by design there are no iterator/pointer-invalidating operations (other than the destructor)
  • ensure that there is no assignment (neither copy nor move)
  • add wording for move construction

- Make sure iterators and references cannot be invalidated by any
  operations (besides destruction).
- Update specification to annotate that some functions require certain
  language features (ranges and concepts).
- Remove dependence on "Container" named requirements because they
  require iterator-invalidating behavior.
- Explicitly add default and move constructors.
- Fix some typos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide a specifcation for gsl::dyn_array
3 participants