Carries-dependency-to
A relation in the memory model that captures data dependencies between operations: if operation A computes a value that operation B uses, memory reordering cannot separate them.
Carries-dependency-to is a finer relation than happens-before. It states that a processor cannot reorder two operations if the second one actually uses data from the first. This is an optimization: on modern processors, many operations without direct data flow can be reordered, but carries-dependency-to specifically forbids reordering of dependent operations. It is central to C++11 and later memory model specifications, especially for lock-free programming where such fine-grained ordering guarantees matter.