The return value
V of type
R
of the defaulted three-way comparison operator function
with parameters
x and
y of the same type
is determined by comparing corresponding elements
xi and
yi
in the expanded lists of subobjects for
x and
y
(in increasing index order)
until the first index
i where
the synthesized three-way comparison of type
R
between
xi and
yi
yields a result value
vi where
vi!=0,
contextually converted to
bool, yields
true;
V is a copy of
vi.