LWG-3628 "Effects: Equivalent to:" and uninitialized memory algorithms

Open
#6,566 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Active
Tech stack
cpp
Domain
backend

Research direction

Start by reading LWG-3628 and the library’s implementations that use “Effects: Equivalent to:” for uninitialized memory algorithms. Audit those occurrences for constraints that were added based on the assumption that equivalent effects propagate constraints; the issue does not name specific files or tests. Done means identifying and removing any unnecessary constraints found, with the changes verified against the relevant library tests.

Written by the indexing model from the issue text.

Description

LWG

LWG-3628 "Effects: Equivalent to:" and uninitialized memory algorithms

This one is interesting because its resolution is just adding a Note, which usually means it's a slam dunk N/A under the heading "Pure wording clarifications with nothing to implement (these can be changes to non-normative text like examples and informative notes)".

But in this case, the Note is correcting an earlier misunderstanding. I certainly was under the impression that Effects Equivalent To propagated Constraints, and I believe there are multiple occurrences in the library where we implemented code accordingly. We should probably audit the library to see if any unnecessary constraints should be removed.

Dominant language
C++
Stars
11.2k
Forks
1.7k
Avg merge
4d 4h
Merged PRs (30d)
14

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/STL

All issues in microsoft/STL

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.