Created on 2023-11-03.00:00:00 last changed 4 weeks ago
The library's definition of the term "required behavior" ([defns.required.behavior]) makes it specific to certain replaceable functions such as the replaceable global allocation functions. Notably, it is not one of the elements that are allowed to appear in the descriptions of general function semantics. That is, it isn't in the list in [structure.specifications] p3.However, the specification of the random number generator library uses "Required behavior" as such a descriptive element of its functions' semantics (e.g., [rand.predef]). I think that's a fine use of "Required behavior", so I would like the term to be more generally applicable to the behavior of any stdlib function that may be customized by users. This is relevant for std::execution, where algorithms are customizable but the customizations are required to behave a certain way. Daniel: Bullet (2.4) of [res.on.functions] also contradicts to the more narrow definition of [defns.required.behavior] by suddenly extending it to "destructor operations".