Skip to content

Commit 9fe30c8

Browse files
CaseyCartertkoeppe
authored andcommitted
Fix typos in [mem.poly.allocator.mem]/9.1 and /9.5 (#1269)
(There is no "T" in scope.)
1 parent 666886e commit 9fe30c8

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

source/utilities.tex

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
T exchange(T& obj, U&& new_val);
6666

6767
// \ref{forward}, forward/move
68-
template <class T>
68+
template <class T>
6969
constexpr T&& forward(remove_reference_t<T>& t) noexcept;
7070
template <class T>
7171
constexpr T&& forward(remove_reference_t<T>&& t) noexcept;
@@ -2260,7 +2260,7 @@
22602260
constexpr const tuple_element_t<I, tuple<Types...>>&
22612261
get(const tuple<Types...>& t) noexcept; // Note B
22622262
template <size_t I, class... Types>
2263-
constexpr const tuple_element_t<I, tuple<Types...>>&& get(const tuple<Types...>&& t) noexcept;
2263+
constexpr const tuple_element_t<I, tuple<Types...>>&& get(const tuple<Types...>&& t) noexcept;
22642264
\end{itemdecl}
22652265

22662266
\begin{itemdescr}
@@ -5341,7 +5341,7 @@
53415341
T any_cast(any& operand);
53425342
template<class T>
53435343
T any_cast(any&& operand);
5344-
5344+
53455345
template<class T>
53465346
const T* any_cast(const any* operand) noexcept;
53475347
template<class T>
@@ -10246,7 +10246,7 @@
1024610246
template<class Y> weak_ptr& operator=(const weak_ptr<Y>& r) noexcept;
1024710247
template<class Y> weak_ptr& operator=(const shared_ptr<Y>& r) noexcept;
1024810248
weak_ptr& operator=(weak_ptr&& r) noexcept;
10249-
template<class Y> weak_ptr& operator=(weak_ptr<Y>&& r) noexcept;
10249+
template<class Y> weak_ptr& operator=(weak_ptr<Y>&& r) noexcept;
1025010250

1025110251
// \ref{util.smartptr.weak.mod}, modifiers
1025210252
void swap(weak_ptr& r) noexcept;
@@ -11226,7 +11226,7 @@
1122611226
If \tcode{uses_allocator_v<T1,memory_resource*>} is \tcode{false}
1122711227
\\
1122811228
and
11229-
\tcode{is_constructible_v<T,Args1...>} is \tcode{true},
11229+
\tcode{is_constructible_v<T1,Args1...>} is \tcode{true},
1123011230
\\
1123111231
then \tcode{xprime} is \tcode{x}.
1123211232
\item
@@ -11253,7 +11253,7 @@
1125311253
If \tcode{uses_allocator_v<T2,memory_resource*>} is \tcode{false}
1125411254
\\
1125511255
and
11256-
\tcode{is_constructible_v<T,Args2...>} is \tcode{true},
11256+
\tcode{is_constructible_v<T2,Args2...>} is \tcode{true},
1125711257
\\
1125811258
then \tcode{yprime} is \tcode{y}.
1125911259
\item
@@ -12800,7 +12800,7 @@
1280012800
struct default_order;
1280112801

1280212802
template <class T = void>
12803-
using default_order_t = typename default_order<T>::type;
12803+
using default_order_t = typename default_order<T>::type;
1280412804

1280512805
// \ref{func.bind}, function object binders
1280612806
template <class T> constexpr bool is_bind_expression_v
@@ -12884,7 +12884,7 @@
1288412884
\item \tcode{t1.*f} when \tcode{N == 1} and \tcode{f} is a pointer to
1288512885
data member of a class \tcode{T}
1288612886
and \tcode{is_base_of_v<T, decay_t<decltype(t1)>>} is \tcode{true};
12887-
12887+
1288812888
\item \tcode{t1.get().*f} when \tcode{N == 1} and \tcode{f} is a pointer to
1288912889
data member of a class \tcode{T}
1289012890
and \tcode{decay_t<decltype(t1)>} is a specialization of \tcode{reference_wrapper};
@@ -15202,7 +15202,7 @@
1520215202
template <class, class R = void> struct is_callable; // not defined
1520315203
template <class Fn, class... ArgTypes, class R>
1520415204
struct is_callable<Fn(ArgTypes...), R>;
15205-
15205+
1520615206
template <class, class R = void> struct is_nothrow_callable; // not defined
1520715207
template <class Fn, class... ArgTypes, class R>
1520815208
struct is_nothrow_callable<Fn(ArgTypes...), R>;
@@ -15270,7 +15270,7 @@
1527015270
// \ref{meta.trans.other}, other transformations
1527115271
template <size_t Len,
1527215272
size_t Align = @\textit{default-alignment}@> // see \ref{meta.trans.other}
15273-
struct aligned_storage;
15273+
struct aligned_storage;
1527415274
template <size_t Len, class... Types> struct aligned_union;
1527515275
template <class T> struct decay;
1527615276
template <bool, class T = void> struct enable_if;
@@ -15296,7 +15296,7 @@
1529615296
template <class T>
1529715297
using underlying_type_t = typename underlying_type<T>::type;
1529815298
template <class T>
15299-
using result_of_t = typename result_of<T>::type;
15299+
using result_of_t = typename result_of<T>::type;
1530015300
template <class...>
1530115301
using void_t = void;
1530215302

@@ -16821,10 +16821,10 @@
1682116821
The specialization \tcode{conjunction<B1, ..., BN>}
1682216822
has a public and unambiguous base that is either
1682316823
\begin{itemize}
16824-
\item
16824+
\item
1682516825
the first type \tcode{Bi} in the list \tcode{true_type, B1, ..., BN}
1682616826
for which \tcode{bool(Bi::value)} is \tcode{false}, or
16827-
\item
16827+
\item
1682816828
if there is no such \tcode{Bi}, the last type in the list.
1682916829
\end{itemize}
1683016830
\begin{note} This means a specialization of \tcode{conjunction}

0 commit comments

Comments
 (0)