std::atomic_ref<T>::notify_one

Performs atomic notifying operations.

# Declarations

void notify_one() const noexcept;

(constexpr since C++26)

# Notes

This form of change-detection is often more efficient than simple polling or pure spinlocks.

# Example

This section is incompleteReason: no example

# Defect reports

DRApplied toBehavior as publishedCorrect behavior
LWG 3508(P3323R1)C++20notify_one was meaningless for const Tconstrained to accept only non-const T

# See also