Skip to content

Commit abd268b

Browse files
committed
[flat.*set.*] Consistently use \exposid
1 parent a02728c commit abd268b

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

source/containers.tex

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16337,20 +16337,20 @@
1633716337
flat_set(const container_type& cont, const Allocator& a);
1633816338

1633916339
flat_set(sorted_unique_t, container_type cont)
16340-
: c(std::move(cont)), compare(key_compare()) { }
16340+
: @\exposid{c}@(std::move(cont)), @\exposid{compare}@(key_compare()) { }
1634116341
template<class Allocator>
1634216342
flat_set(sorted_unique_t, const container_type& cont, const Allocator& a);
1634316343

1634416344
explicit flat_set(const key_compare& comp)
16345-
: c(), compare(comp) { }
16345+
: @\exposid{c}@(), @\exposid{compare}@(comp) { }
1634616346
template<class Allocator>
1634716347
flat_set(const key_compare& comp, const Allocator& a);
1634816348
template<class Allocator>
1634916349
explicit flat_set(const Allocator& a);
1635016350

1635116351
template<class InputIterator>
1635216352
flat_set(InputIterator first, InputIterator last, const key_compare& comp = key_compare())
16353-
: c(), compare(comp)
16353+
: @\exposid{c}@(), @\exposid{compare}@(comp)
1635416354
{ insert(first, last); }
1635516355
template<class InputIterator, class Allocator>
1635616356
flat_set(InputIterator first, InputIterator last,
@@ -16373,7 +16373,7 @@
1637316373
template<class InputIterator>
1637416374
flat_set(sorted_unique_t, InputIterator first, InputIterator last,
1637516375
const key_compare& comp = key_compare())
16376-
: c(first, last), compare(comp) { }
16376+
: @\exposid{c}@(first, last), @\exposid{compare}@(comp) { }
1637716377
template<class InputIterator, class Allocator>
1637816378
flat_set(sorted_unique_t, InputIterator first, InputIterator last,
1637916379
const key_compare& comp, const Allocator& a);
@@ -16546,14 +16546,14 @@
1654616546
\pnum
1654716547
\effects
1654816548
Initializes \exposid{c} with \tcode{std::move(cont)},
16549-
value-initializes \tcode{compare},
16550-
sorts the range \range{begin()}{end()} with respect to \tcode{compare}, and
16549+
value-initializes \exposid{compare},
16550+
sorts the range \range{begin()}{end()} with respect to \exposid{compare}, and
1655116551
finally erases all but the first element
1655216552
from each group of consecutive equivalent elements.
1655316553

1655416554
\pnum
1655516555
\complexity
16556-
Linear in $N$ if \tcode{cont} is sorted with respect to \tcode{compare} and
16556+
Linear in $N$ if \tcode{cont} is sorted with respect to \exposid{compare} and
1655716557
otherwise $N \log N$, where $N$ is the value of \tcode{cont.size()} before this call.
1655816558
\end{itemdescr}
1655916559

@@ -16690,10 +16690,10 @@
1669016690
\effects
1669116691
Adds elements to \exposid{c} as if by:
1669216692
\begin{codeblock}
16693-
c.insert(c.end(), first, last);
16693+
@\exposid{c}@.insert(@\exposid{c}@.end(), first, last);
1669416694
\end{codeblock}
1669516695
Then,
16696-
sorts the range of newly inserted elements with respect to \tcode{compare};
16696+
sorts the range of newly inserted elements with respect to \exposid{compare};
1669716697
merges the resulting sorted range and
1669816698
the sorted range of pre-existing elements into a single sorted range; and
1669916699
finally erases all but the first element
@@ -16737,11 +16737,11 @@
1673716737
Adds elements to \exposid{c} as if by:
1673816738
\begin{codeblock}
1673916739
for (const auto& e : rg) {
16740-
c.insert(c.end(), e);
16740+
@\exposid{c}@.insert(@\exposid{c}@.end(), e);
1674116741
}
1674216742
\end{codeblock}
1674316743
Then,
16744-
sorts the range of newly inserted elements with respect to \tcode{compare};
16744+
sorts the range of newly inserted elements with respect to \exposid{compare};
1674516745
merges the resulting sorted range and
1674616746
the sorted range of pre-existing elements into a single sorted range; and
1674716747
finally erases all but the first element
@@ -16768,7 +16768,7 @@
1676816768
Equivalent to:
1676916769
\begin{codeblock}
1677016770
ranges::swap(compare, y.compare);
16771-
ranges::swap(c, y.c);
16771+
ranges::swap(@\exposid{c}@, y.@\exposid{c}@);
1677216772
\end{codeblock}
1677316773
\end{itemdescr}
1677416774

@@ -16784,7 +16784,7 @@
1678416784

1678516785
\pnum
1678616786
\returns
16787-
\tcode{std::move(c)}.
16787+
\tcode{std::move(\exposid{c})}.
1678816788
\end{itemdescr}
1678916789

1679016790
\indexlibrarymember{replace}{flat_set}%
@@ -16795,12 +16795,12 @@
1679516795
\begin{itemdescr}
1679616796
\pnum
1679716797
\expects
16798-
The elements of \tcode{cont} are sorted with respect to \tcode{compare}, and
16798+
The elements of \tcode{cont} are sorted with respect to \exposid{compare}, and
1679916799
\tcode{cont} contains no equal elements.
1680016800

1680116801
\pnum
1680216802
\effects
16803-
Equivalent to: \tcode{c = std::move(cont);}
16803+
Equivalent to: \tcode{\exposid{c} = std::move(cont);}
1680416804
\end{itemdescr}
1680516805

1680616806
\rSec3[flat.set.erasure]{Erasure}
@@ -16936,12 +16936,12 @@
1693616936
flat_multiset(const container_type& cont, const Allocator& a);
1693716937

1693816938
flat_multiset(sorted_equivalent_t, container_type cont)
16939-
: c(std::move(cont)), compare(key_compare()) { }
16939+
: @\exposid{c}@(std::move(cont)), @\exposid{compare}@(key_compare()) { }
1694016940
template<class Allocator>
1694116941
flat_multiset(sorted_equivalent_t, const container_type&, const Allocator& a);
1694216942

1694316943
explicit flat_multiset(const key_compare& comp)
16944-
: c(), compare(comp) { }
16944+
: @\exposid{c}@(), @\exposid{compare}@(comp) { }
1694516945
template<class Allocator>
1694616946
flat_multiset(const key_compare& comp, const Allocator& a);
1694716947
template<class Allocator>
@@ -16950,7 +16950,7 @@
1695016950
template<class InputIterator>
1695116951
flat_multiset(InputIterator first, InputIterator last,
1695216952
const key_compare& comp = key_compare())
16953-
: c(), compare(comp)
16953+
: @\exposid{c}@(), @\exposid{compare}@(comp)
1695416954
{ insert(first, last); }
1695516955
template<class InputIterator, class Allocator>
1695616956
flat_multiset(InputIterator first, InputIterator last,
@@ -16973,7 +16973,7 @@
1697316973
template<class InputIterator>
1697416974
flat_multiset(sorted_equivalent_t, InputIterator first, InputIterator last,
1697516975
const key_compare& comp = key_compare())
16976-
: c(first, last), compare(comp) { }
16976+
: @\exposid{c}@(first, last), @\exposid{compare}@(comp) { }
1697716977
template<class InputIterator, class Allocator>
1697816978
flat_multiset(sorted_equivalent_t, InputIterator first, InputIterator last,
1697916979
const key_compare& comp, const Allocator& a);

0 commit comments

Comments
 (0)