|
1764 | 1764 | \tcode{*r} &
|
1765 | 1765 | unspecified &
|
1766 | 1766 | &
|
1767 |
| - \requires \tcode{r} is dereferenceable. \\ \rowsep |
| 1767 | + \expects \tcode{r} is dereferenceable. \\ \rowsep |
1768 | 1768 |
|
1769 | 1769 | \tcode{++r} &
|
1770 | 1770 | \tcode{X\&} &
|
|
1830 | 1830 | \tcode{a != b} &
|
1831 | 1831 | contextually convertible to \tcode{bool} &
|
1832 | 1832 | \tcode{!(a == b)} &
|
1833 |
| - \requires \orange{a}{b} is in the domain of \tcode{==}. \\ \rowsep |
| 1833 | + \expects \orange{a}{b} is in the domain of \tcode{==}. \\ \rowsep |
1834 | 1834 |
|
1835 | 1835 | \tcode{*a} &
|
1836 | 1836 | \tcode{reference}, convertible to \tcode{T} &
|
1837 | 1837 | &
|
1838 |
| - \requires \tcode{a} is dereferenceable.\br |
| 1838 | + \expects \tcode{a} is dereferenceable.\br |
1839 | 1839 | The expression\br \tcode{(void)*a, *a} is equivalent to \tcode{*a}.\br
|
1840 | 1840 | If \tcode{a == b} and \orange{a}{b} is in the domain of \tcode{==}
|
1841 | 1841 | then \tcode{*a} is equivalent to \tcode{*b}. \\ \rowsep
|
1842 | 1842 | \tcode{a->m} &
|
1843 | 1843 | &
|
1844 | 1844 | \tcode{(*a).m} &
|
1845 |
| - \requires \tcode{a} is dereferenceable. \\ \rowsep |
| 1845 | + \expects \tcode{a} is dereferenceable. \\ \rowsep |
1846 | 1846 | \tcode{++r} &
|
1847 | 1847 | \tcode{X\&} &
|
1848 | 1848 | &
|
1849 |
| - \requires \tcode{r} is dereferenceable.\br |
| 1849 | + \expects \tcode{r} is dereferenceable.\br |
1850 | 1850 | \ensures \tcode{r} is dereferenceable or \tcode{r} is past-the-end;\br
|
1851 | 1851 | any copies of the previous value of \tcode{r} are no longer
|
1852 | 1852 | required to be dereferenceable nor to be in the domain of \tcode{==}. \\ \rowsep
|
|
1905 | 1905 | \tcode{*r = o} &
|
1906 | 1906 | result is not used &
|
1907 | 1907 | &
|
1908 |
| - \remarks\ After this operation \tcode{r} is not required to be dereferenceable.\br |
| 1908 | + \remarks After this operation \tcode{r} is not required to be dereferenceable.\br |
1909 | 1909 | \ensures \tcode{r} is incrementable. \\ \rowsep
|
1910 | 1910 |
|
1911 | 1911 | \tcode{++r} &
|
1912 | 1912 | \tcode{X\&} &
|
1913 | 1913 | &
|
1914 | 1914 | \tcode{addressof(r) == addressof(++r)}.\br
|
1915 |
| - \remarks\ After this operation \tcode{r} is not required to be dereferenceable.\br |
| 1915 | + \remarks After this operation \tcode{r} is not required to be dereferenceable.\br |
1916 | 1916 | \ensures \tcode{r} is incrementable. \\ \rowsep
|
1917 | 1917 |
|
1918 | 1918 | \tcode{r++} &
|
1919 | 1919 | convertible to \tcode{const X\&} &
|
1920 | 1920 | \tcode{\{ X tmp = r;}\br
|
1921 | 1921 | \tcode{ ++r;}\br
|
1922 | 1922 | \tcode{ return tmp; \}} &
|
1923 |
| - \remarks\ After this operation \tcode{r} is not required to be dereferenceable.\br |
| 1923 | + \remarks After this operation \tcode{r} is not required to be dereferenceable.\br |
1924 | 1924 | \ensures \tcode{r} is incrementable. \\ \rowsep
|
1925 | 1925 |
|
1926 | 1926 | \tcode{*r++ = o} &
|
1927 | 1927 | result is not used &&
|
1928 |
| - \remarks\ After this operation \tcode{r} is not required to be dereferenceable.\br |
| 1928 | + \remarks After this operation \tcode{r} is not required to be dereferenceable.\br |
1929 | 1929 | \ensures \tcode{r} is incrementable. \\
|
1930 | 1930 | \end{libreqtab4b}
|
1931 | 1931 |
|
|
2048 | 2048 | \tcode{\dcr r} &
|
2049 | 2049 | \tcode{X\&} &
|
2050 | 2050 | &
|
2051 |
| - \requires there exists \tcode{s} such that \tcode{r == ++s}.\br |
| 2051 | + \expects there exists \tcode{s} such that \tcode{r == ++s}.\br |
2052 | 2052 | \ensures \tcode{r} is dereferenceable.\br
|
2053 | 2053 | \tcode{\dcr(++r) == r}.\br
|
2054 | 2054 | \tcode{\dcr r == \dcr s} implies \tcode{r == s}.\br
|
|
2111 | 2111 | \tcode{r -= n} &
|
2112 | 2112 | \tcode{X\&} &
|
2113 | 2113 | \tcode{return r += -n;} &
|
2114 |
| - \requires the absolute value of \tcode{n} is in the range of |
| 2114 | + \expects the absolute value of \tcode{n} is in the range of |
2115 | 2115 | representable values of \tcode{difference_type}. \\ \rowsep
|
2116 | 2116 |
|
2117 | 2117 | \tcode{a - n} &
|
|
2122 | 2122 | \tcode{b - a} &
|
2123 | 2123 | \tcode{difference_type} &
|
2124 | 2124 | \tcode{return n} &
|
2125 |
| - \requires there exists a value \tcode{n} of type \tcode{difference_type} such that \tcode{a + n == b}.\br |
| 2125 | + \expects there exists a value \tcode{n} of type \tcode{difference_type} such that \tcode{a + n == b}.\br |
2126 | 2126 | \tcode{b == a + (b - a)}. \\ \rowsep
|
2127 | 2127 |
|
2128 | 2128 | \tcode{a[n]} &
|
|
3269 | 3269 | \begin{itemdescr}
|
3270 | 3270 | \pnum
|
3271 | 3271 | \constraints
|
3272 |
| -The expression \tcode{x.base() == y.base()} shall be valid and |
| 3272 | +\tcode{x.base() == y.base()} is well-formed and |
3273 | 3273 | convertible to \tcode{bool}.
|
3274 | 3274 |
|
3275 | 3275 | \pnum
|
|
3288 | 3288 | \begin{itemdescr}
|
3289 | 3289 | \pnum
|
3290 | 3290 | \constraints
|
3291 |
| -The expression \tcode{x.base() != y.base()} shall be valid and |
| 3291 | +\tcode{x.base() != y.base()} is well-formed and |
3292 | 3292 | convertible to \tcode{bool}.
|
3293 | 3293 |
|
3294 | 3294 | \pnum
|
|
3307 | 3307 | \begin{itemdescr}
|
3308 | 3308 | \pnum
|
3309 | 3309 | \constraints
|
3310 |
| -The expression \tcode{x.base() > y.base()} shall be valid and |
| 3310 | +\tcode{x.base() > y.base()} is well-formed and |
3311 | 3311 | convertible to \tcode{bool}.
|
3312 | 3312 |
|
3313 | 3313 | \pnum
|
|
3326 | 3326 | \begin{itemdescr}
|
3327 | 3327 | \pnum
|
3328 | 3328 | \constraints
|
3329 |
| -The expression \tcode{x.base() < y.base()} shall be valid and |
| 3329 | +\tcode{x.base() < y.base()} is well-formed and |
3330 | 3330 | convertible to \tcode{bool}.
|
3331 | 3331 |
|
3332 | 3332 | \pnum
|
|
3345 | 3345 | \begin{itemdescr}
|
3346 | 3346 | \pnum
|
3347 | 3347 | \constraints
|
3348 |
| -The expression \tcode{x.base() >= y.base()} shall be valid and |
| 3348 | +\tcode{x.base() >= y.base()} is well-formed and |
3349 | 3349 | convertible to \tcode{bool}.
|
3350 | 3350 |
|
3351 | 3351 | \pnum
|
|
3364 | 3364 | \begin{itemdescr}
|
3365 | 3365 | \pnum
|
3366 | 3366 | \constraints
|
3367 |
| -The expression \tcode{x.base() <= y.base()} shall be valid and |
| 3367 | +\tcode{x.base() <= y.base()} is well-formed and |
3368 | 3368 | convertible to \tcode{bool}.
|
3369 | 3369 |
|
3370 | 3370 | \pnum
|
|
4014 | 4014 |
|
4015 | 4015 | \begin{itemdescr}
|
4016 | 4016 | \pnum
|
4017 |
| -\effects Constructs a \tcode{move_iterator}, initializing |
4018 |
| -\tcode{current} with \tcode{u.base()}. |
| 4017 | +\mandates \tcode{U} is convertible to \tcode{Iterator}. |
4019 | 4018 |
|
4020 | 4019 | \pnum
|
4021 |
| -\requires \tcode{U} shall be convertible to |
4022 |
| -\tcode{Iterator}. |
| 4020 | +\effects Constructs a \tcode{move_iterator}, initializing |
| 4021 | +\tcode{current} with \tcode{u.base()}. |
4023 | 4022 | \end{itemdescr}
|
4024 | 4023 |
|
4025 | 4024 | \indexlibrarymember{operator=}{move_iterator}%
|
|
4029 | 4028 |
|
4030 | 4029 | \begin{itemdescr}
|
4031 | 4030 | \pnum
|
4032 |
| -\effects Assigns \tcode{u.base()} to |
4033 |
| -\tcode{current}. |
| 4031 | +\mandates \tcode{U} is convertible to \tcode{Iterator}. |
4034 | 4032 |
|
4035 | 4033 | \pnum
|
4036 |
| -\requires \tcode{U} shall be convertible to |
4037 |
| -\tcode{Iterator}. |
| 4034 | +\effects Assigns \tcode{u.base()} to |
| 4035 | +\tcode{current}. |
4038 | 4036 | \end{itemdescr}
|
4039 | 4037 |
|
4040 | 4038 | \rSec3[move.iter.op.conv]{Conversion}
|
|
4206 | 4204 | \begin{itemdescr}
|
4207 | 4205 | \pnum
|
4208 | 4206 | \constraints
|
4209 |
| -The expression \tcode{x.base() == y.base()} shall be valid and |
| 4207 | +\tcode{x.base() == y.base()} is well-formed and |
4210 | 4208 | convertible to \tcode{bool}.
|
4211 | 4209 |
|
4212 | 4210 | \pnum
|
|
4229 | 4227 | \begin{itemdescr}
|
4230 | 4228 | \pnum
|
4231 | 4229 | \constraints
|
4232 |
| -The expression \tcode{x.base() == y.base()} shall be valid and |
| 4230 | +\tcode{x.base() == y.base()} is well-formed and |
4233 | 4231 | convertible to \tcode{bool}.
|
4234 | 4232 |
|
4235 | 4233 | \pnum
|
|
4245 | 4243 | \begin{itemdescr}
|
4246 | 4244 | \pnum
|
4247 | 4245 | \constraints
|
4248 |
| -The expression \tcode{x.base() < y.base()} shall be valid and |
| 4246 | +\tcode{x.base() < y.base()} is well-formed and |
4249 | 4247 | convertible to \tcode{bool}.
|
4250 | 4248 |
|
4251 | 4249 | \pnum
|
|
4261 | 4259 | \begin{itemdescr}
|
4262 | 4260 | \pnum
|
4263 | 4261 | \constraints
|
4264 |
| -The expression \tcode{y.base() < x.base()} shall be valid and |
| 4262 | +\tcode{y.base() < x.base()} is well-formed and |
4265 | 4263 | convertible to \tcode{bool}.
|
4266 | 4264 |
|
4267 | 4265 | \pnum
|
|
4277 | 4275 | \begin{itemdescr}
|
4278 | 4276 | \pnum
|
4279 | 4277 | \constraints
|
4280 |
| -The expression \tcode{y.base() < x.base()} shall be valid and |
| 4278 | +\tcode{y.base() < x.base()} is well-formed and |
4281 | 4279 | convertible to \tcode{bool}.
|
4282 | 4280 |
|
4283 | 4281 | \pnum
|
|
4293 | 4291 | \begin{itemdescr}
|
4294 | 4292 | \pnum
|
4295 | 4293 | \constraints
|
4296 |
| -The expression \tcode{x.base() < y.base()} shall be valid and |
| 4294 | +\tcode{x.base() < y.base()} is well-formed and |
4297 | 4295 | convertible to \tcode{bool}.
|
4298 | 4296 |
|
4299 | 4297 | \pnum
|
|
4331 | 4329 | \begin{itemdescr}
|
4332 | 4330 | \pnum
|
4333 | 4331 | \constraints
|
4334 |
| -The expression \tcode{x + n} shall be valid and have type \tcode{Iterator}. |
| 4332 | +\tcode{x + n} is well-formed and has type \tcode{Iterator}. |
4335 | 4333 |
|
4336 | 4334 | \pnum
|
4337 | 4335 | \returns \tcode{x + n}.
|
|
5660 | 5658 | \end{itemdecl}
|
5661 | 5659 |
|
5662 | 5660 | \begin{itemdescr}
|
5663 |
| -\pnum |
5664 |
| -\effects |
5665 |
| -Constructs a copy of \tcode{x}. |
5666 |
| - |
5667 | 5661 | \pnum
|
5668 | 5662 | \ensures \tcode{in_stream == x.in_stream} is \tcode{true}.
|
5669 | 5663 |
|
|
5745 | 5739 | \end{itemdecl}
|
5746 | 5740 |
|
5747 | 5741 | \begin{itemdescr}
|
| 5742 | +\pnum |
| 5743 | +\expects \tcode{in_stream != nullptr} is \tcode{true}. |
| 5744 | + |
5748 | 5745 | \pnum
|
5749 | 5746 | \effects Equivalent to:
|
5750 | 5747 | \begin{codeblock}
|
|
5870 | 5867 | \tcode{delim} with \tcode{delimiter}.
|
5871 | 5868 | \end{itemdescr}
|
5872 | 5869 |
|
5873 |
| - |
5874 |
| -\indexlibrary{\idxcode{ostream_iterator}!constructor}% |
5875 |
| -\begin{itemdecl} |
5876 |
| -ostream_iterator(const ostream_iterator& x); |
5877 |
| -\end{itemdecl} |
5878 |
| - |
5879 |
| -\begin{itemdescr} |
5880 |
| -\pnum |
5881 |
| -\effects |
5882 |
| -Constructs a copy of \tcode{x}. |
5883 |
| -\end{itemdescr} |
5884 |
| - |
5885 |
| -\indexlibrary{\idxcode{ostream_iterator}!destructor}% |
5886 |
| -\begin{itemdecl} |
5887 |
| -~ostream_iterator(); |
5888 |
| -\end{itemdecl} |
5889 |
| - |
5890 |
| -\begin{itemdescr} |
5891 |
| -\pnum |
5892 |
| -\effects |
5893 |
| -The iterator is destroyed. |
5894 |
| -\end{itemdescr} |
5895 |
| - |
5896 | 5870 | \rSec3[ostream.iterator.ops]{Operations}
|
5897 | 5871 |
|
5898 | 5872 | \indexlibrarymember{operator=}{ostream_iterator}%
|
|
6248 | 6222 |
|
6249 | 6223 | \begin{itemdescr}
|
6250 | 6224 | \pnum
|
6251 |
| -\requires |
| 6225 | +\expects |
6252 | 6226 | \tcode{s.rdbuf()}
|
6253 |
| -shall not be a null pointer. |
| 6227 | +is not a null pointer. |
6254 | 6228 |
|
6255 | 6229 | \pnum
|
6256 | 6230 | \effects
|
|
6265 | 6239 |
|
6266 | 6240 | \begin{itemdescr}
|
6267 | 6241 | \pnum
|
6268 |
| -\requires |
| 6242 | +\expects |
6269 | 6243 | \tcode{s}
|
6270 |
| -shall not be a null pointer. |
| 6244 | +is not a null pointer. |
6271 | 6245 |
|
6272 | 6246 | \pnum
|
6273 | 6247 | \effects
|
|
0 commit comments