|
4331 | 4331 | \begin{codeblock} |
4332 | 4332 | namespace std { |
4333 | 4333 | class partial_ordering { |
4334 | | - int value; // \expos |
4335 | | - bool is_ordered; // \expos |
| 4334 | + int @\exposid{value}@; // \expos |
| 4335 | + bool @\exposid{is-ordered}@; // \expos |
4336 | 4336 |
|
4337 | 4337 | // exposition-only constructors |
4338 | 4338 | constexpr explicit |
4339 | | - partial_ordering(@\placeholder{ord}@ v) noexcept : value(int(v)), is_ordered(true) {} // \expos |
| 4339 | + partial_ordering(@\placeholder{ord}@ v) noexcept : @\exposid{value}@(int(v)), @\exposid{is-ordered}@(true) {} // \expos |
4340 | 4340 | constexpr explicit |
4341 | | - partial_ordering(@\placeholder{ncmp}@ v) noexcept : value(int(v)), is_ordered(false) {} // \expos |
| 4341 | + partial_ordering(@\placeholder{ncmp}@ v) noexcept : @\exposid{value}@(int(v)), @\exposid{is-ordered}@(false) {} // \expos |
4342 | 4342 |
|
4343 | 4343 | public: |
4344 | 4344 | // valid values |
|
4386 | 4386 | \begin{itemdescr} |
4387 | 4387 | \pnum |
4388 | 4388 | \returns |
4389 | | -For \tcode{operator@}, \tcode{v.is_ordered \&\& v.value @ 0}. |
| 4389 | +For \tcode{operator@}, \tcode{v.\exposid{is-ordered} \&\& v.\exposid{value} @ 0}. |
4390 | 4390 | \end{itemdescr} |
4391 | 4391 |
|
4392 | 4392 | \indexlibrarymember{operator<}{partial_ordering}% |
|
4403 | 4403 | \begin{itemdescr} |
4404 | 4404 | \pnum |
4405 | 4405 | \returns |
4406 | | -For \tcode{operator@}, \tcode{v.is_ordered \&\& 0 @ v.value}. |
| 4406 | +For \tcode{operator@}, \tcode{v.\exposid{is-ordered} \&\& 0 @ v.\exposid{value}}. |
4407 | 4407 | \end{itemdescr} |
4408 | 4408 |
|
4409 | 4409 | \indexlibrarymember{operator<=>}{partial_ordering}% |
|
4444 | 4444 | \begin{codeblock} |
4445 | 4445 | namespace std { |
4446 | 4446 | class weak_ordering { |
4447 | | - int value; // \expos |
| 4447 | + int @\exposid{value}@; // \expos |
4448 | 4448 |
|
4449 | 4449 | // exposition-only constructors |
4450 | | - constexpr explicit weak_ordering(@\placeholder{ord}@ v) noexcept : value(int(v)) {} // \expos |
| 4450 | + constexpr explicit weak_ordering(@\placeholder{ord}@ v) noexcept : @\exposid{value}@(int(v)) {} // \expos |
4451 | 4451 |
|
4452 | 4452 | public: |
4453 | 4453 | // valid values |
|
4489 | 4489 | \pnum |
4490 | 4490 | \returns |
4491 | 4491 | \begin{codeblock} |
4492 | | -value == 0 ? partial_ordering::equivalent : |
4493 | | -value < 0 ? partial_ordering::less : |
| 4492 | +@\exposid{value}@ == 0 ? partial_ordering::equivalent : |
| 4493 | +@\exposid{value}@ < 0 ? partial_ordering::less : |
4494 | 4494 | partial_ordering::greater |
4495 | 4495 | \end{codeblock} |
4496 | 4496 | \end{itemdescr} |
|
4511 | 4511 | \begin{itemdescr} |
4512 | 4512 | \pnum |
4513 | 4513 | \returns |
4514 | | -\tcode{v.value @ 0} for \tcode{operator@}. |
| 4514 | +\tcode{v.\exposid{value} @ 0} for \tcode{operator@}. |
4515 | 4515 | \end{itemdescr} |
4516 | 4516 |
|
4517 | 4517 | \indexlibrarymember{operator<}{weak_ordering}% |
|
4528 | 4528 | \begin{itemdescr} |
4529 | 4529 | \pnum |
4530 | 4530 | \returns |
4531 | | -\tcode{0 @ v.value} for \tcode{operator@}. |
| 4531 | +\tcode{0 @ v.\exposid{value}} for \tcode{operator@}. |
4532 | 4532 | \end{itemdescr} |
4533 | 4533 |
|
4534 | 4534 | \indexlibrarymember{operator<=>}{weak_ordering}% |
|
4570 | 4570 | \begin{codeblock} |
4571 | 4571 | namespace std { |
4572 | 4572 | class strong_ordering { |
4573 | | - int value; // \expos |
| 4573 | + int @\exposid{value}@; // \expos |
4574 | 4574 |
|
4575 | 4575 | // exposition-only constructors |
4576 | | - constexpr explicit strong_ordering(@\placeholder{ord}@ v) noexcept : value(int(v)) {} // \expos |
| 4576 | + constexpr explicit strong_ordering(@\placeholder{ord}@ v) noexcept : @\exposid{value}@(int(v)) {} // \expos |
4577 | 4577 |
|
4578 | 4578 | public: |
4579 | 4579 | // valid values |
|
4618 | 4618 | \pnum |
4619 | 4619 | \returns |
4620 | 4620 | \begin{codeblock} |
4621 | | -value == 0 ? partial_ordering::equivalent : |
4622 | | -value < 0 ? partial_ordering::less : |
| 4621 | +@\exposid{value}@ == 0 ? partial_ordering::equivalent : |
| 4622 | +@\exposid{value}@ < 0 ? partial_ordering::less : |
4623 | 4623 | partial_ordering::greater |
4624 | 4624 | \end{codeblock} |
4625 | 4625 | \end{itemdescr} |
|
4633 | 4633 | \pnum |
4634 | 4634 | \returns |
4635 | 4635 | \begin{codeblock} |
4636 | | -value == 0 ? weak_ordering::equivalent : |
4637 | | -value < 0 ? weak_ordering::less : |
| 4636 | +@\exposid{value}@ == 0 ? weak_ordering::equivalent : |
| 4637 | +@\exposid{value}@ < 0 ? weak_ordering::less : |
4638 | 4638 | weak_ordering::greater |
4639 | 4639 | \end{codeblock} |
4640 | 4640 | \end{itemdescr} |
|
4655 | 4655 | \begin{itemdescr} |
4656 | 4656 | \pnum |
4657 | 4657 | \returns |
4658 | | -\tcode{v.value @ 0} for \tcode{operator@}. |
| 4658 | +\tcode{v.\exposid{value} @ 0} for \tcode{operator@}. |
4659 | 4659 | \end{itemdescr} |
4660 | 4660 |
|
4661 | 4661 | \indexlibrarymember{operator<}{strong_ordering}% |
|
4672 | 4672 | \begin{itemdescr} |
4673 | 4673 | \pnum |
4674 | 4674 | \returns |
4675 | | -\tcode{0 @ v.value} for \tcode{operator@}. |
| 4675 | +\tcode{0 @ v.\exposid{value}} for \tcode{operator@}. |
4676 | 4676 | \end{itemdescr} |
4677 | 4677 |
|
4678 | 4678 | \indexlibrarymember{operator<=>}{strong_ordering}% |
|
0 commit comments