|
1633 | 1633 |
|
1634 | 1634 | \begin{itemdescr}
|
1635 | 1635 | \pnum
|
1636 |
| -\effects returns \tcode{assign(e)}. |
| 1636 | +\effects copies \tcode{e} into \tcode{*this} and returns \tcode{*this}. |
| 1637 | + |
| 1638 | +\pnum\postconditions |
| 1639 | +\tcode{flags()} and \tcode{mark_count()} return |
| 1640 | +\tcode{e.flags()} and \tcode{e.mark_count()}, respectively. |
1637 | 1641 | \end{itemdescr}
|
1638 | 1642 |
|
1639 | 1643 | \indexlibrary{\idxcode{basic_regex}!\idxcode{operator=}}%
|
|
1644 | 1648 |
|
1645 | 1649 | \begin{itemdescr}
|
1646 | 1650 | \pnum
|
1647 |
| -\effects returns \tcode{assign(std::move(e))}. |
| 1651 | +\effects move assigns from \tcode{e} into \tcode{*this} and returns \tcode{*this}. |
| 1652 | + |
| 1653 | +\pnum |
| 1654 | +\postconditions \tcode{flags()} and \tcode{mark_count()} return the values that |
| 1655 | +\tcode{e.flags()} and \tcode{e.mark_count()}, respectively, had before assignment. |
| 1656 | +\tcode{e} is in a valid state with unspecified value. |
1648 | 1657 | \end{itemdescr}
|
1649 | 1658 |
|
1650 | 1659 | \indexlibrary{\idxcode{basic_regex}!\idxcode{operator=}}%
|
|
1692 | 1701 |
|
1693 | 1702 | \begin{itemdescr}
|
1694 | 1703 | \pnum
|
1695 |
| -\effects copies \tcode{that} into \tcode{*this} and returns \tcode{*this}. |
| 1704 | +\effects Equivalent to \tcode{*this = that}. |
1696 | 1705 |
|
1697 |
| -\pnum\postconditions |
1698 |
| -\tcode{flags()} and \tcode{mark_count()} return |
1699 |
| -\tcode{that.flags()} and \tcode{that.mark_count()}, respectively. |
| 1706 | +\pnum |
| 1707 | +\returns \tcode{*this}. |
1700 | 1708 | \end{itemdescr}
|
1701 | 1709 |
|
1702 | 1710 | \indexlibrary{\idxcode{basic_regex}!\idxcode{assign}}%
|
|
1707 | 1715 |
|
1708 | 1716 | \begin{itemdescr}
|
1709 | 1717 | \pnum
|
1710 |
| -\effects move assigns from \tcode{that} into \tcode{*this} and returns \tcode{*this}. |
| 1718 | +\effects Equivalent to \tcode{*this = std::move(that)}. |
1711 | 1719 |
|
1712 | 1720 | \pnum
|
1713 |
| -\postconditions \tcode{flags()} and \tcode{mark_count()} return the values that |
1714 |
| -\tcode{that.flags()} and \tcode{that.mark_count()}, respectively, had before assignment. |
1715 |
| -\tcode{that} is in a valid state with unspecified value. |
| 1721 | +\returns \tcode{*this}. |
1716 | 1722 | \end{itemdescr}
|
1717 | 1723 |
|
1718 | 1724 | \indexlibrary{\idxcode{basic_regex}!\idxcode{assign}}%
|
|
0 commit comments