diff --git a/source/containers.tex b/source/containers.tex index e2e781aa7f..fd66ccaf4c 100644 --- a/source/containers.tex +++ b/source/containers.tex @@ -6095,23 +6095,26 @@ constexpr typename vector::size_type erase_if(vector& c, Predicate pred); - // \ref{vector.bool}, class \tcode{vector} - template class vector; + namespace pmr { + template + using vector = std::vector>; + } + + // \ref{vector.bool}, specialization of \tcode{vector} for \tcode{bool} + // \ref{vector.bool.pspc}, partial class template specialization \tcode{vector} + template + class vector; template constexpr bool @\exposid{is-vector-bool-reference}@ = @\seebelow@; // \expos - template requires @\exposid{is-vector-bool-reference}@ - struct formatter; - // hash support template struct hash; template struct hash>; - namespace pmr { - template - using vector = std::vector>; - } + // \ref{vector.bool.fmt}, formatter specialization for \tcode{vector} + template requires @\exposid{is-vector-bool-reference}@ + struct formatter; } \end{codeblock} @@ -9112,14 +9115,14 @@ \end{codeblock} \end{itemdescr} -\rSec2[vector.bool]{Class \tcode{vector}} +\rSec2[vector.bool]{Specialization of \tcode{vector} for \tcode{bool}} + +\rSec3[vector.bool.pspc]{Partial class template specialization \tcode{vector}} \pnum \indexlibraryglobal{vector}% -To optimize space allocation, a specialization of vector for -\tcode{bool} -elements is provided: - +To optimize space allocation, a partial specialization of \tcode{vector} for +\tcode{bool} elements is provided: \begin{codeblock} namespace std { template @@ -9312,6 +9315,8 @@ \tcode{vector} is not a program-defined specialization. \end{itemdescr} +\rSec3[vector.bool.fmt]{Formatter specialization for \tcode{vector}} + \indexlibraryglobal{formatter}% \begin{codeblock} namespace std {