cplusplus / cplusplus/draft

Doubtful uses of term "lifetime"

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

Nobody has claimed this yet.

Dominant language
TeX
Stars
221
Forks
813
Avg merge
16h 4m
Merged PRs (30d)
36

Description

Currently the term "lifetime" is only defined for objects and references ([basic.life]), but there're some uses of "lifetime" for other things.

  • [intro.progress]/14 (Note 9) talks about the lifetime of a thread of execution. [thread.barrier.general]/1 talks about the lifetime of a barrier. It seems that both occurences of "lifetime" are about some execution, not a (j)thread or barrier object.
  • [basic.stc.general]/1 talks about the lifetime of a storage.

Should we use other words in these places?

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Read the cited standard sections: [intro.progress]/14, [thread.barrier.general]/1, and [basic.stc.general]/1, together with the definition of “lifetime” in [basic.life]. Compare how the term is used for threads, barriers, and storage, then determine whether the wording should be changed and update the affected draft text consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.