Skip to content

Commit 4b5a008

Browse files
frederick-vs-jatkoeppe
authored andcommitted
[func.wrap.func] Drop Lvalue-Callable
Replace its usages with `is_invocable_r_v` and remove an unnecessary index.
1 parent 598910d commit 4b5a008

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

source/utilities.tex

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13152,17 +13152,6 @@
1315213152
and call arbitrary callable objects\iref{func.def}, given a call
1315313153
signature\iref{func.def}.
1315413154

13155-
\pnum
13156-
\indextext{callable type}%
13157-
A callable type\iref{func.def} \tcode{F}
13158-
is \defn{Lvalue-Callable} for argument
13159-
types \tcode{ArgTypes}
13160-
and return type \tcode{R}
13161-
if the expression
13162-
\tcode{\placeholdernc{INVOKE}<R>(declval<F\&>(), declval<ArgTypes>()...)},
13163-
considered as an unevaluated operand\iref{term.unevaluated.operand}, is
13164-
well-formed\iref{func.require}.
13165-
1316613155
\pnum
1316713156
The \tcode{function} class template is a call
1316813157
wrapper\iref{func.def} whose call signature\iref{func.def}
@@ -13260,8 +13249,7 @@
1326013249
\item
1326113250
\tcode{is_same_v<remove_cvref_t<F>, function>} is \tcode{false}, and
1326213251
\item
13263-
\tcode{FD} is Lvalue-Callable\iref{func.wrap.func} for argument types
13264-
\tcode{ArgTypes...} and return type \tcode{R}.
13252+
\tcode{is_invocable_r_v<R, FD\&, ArgTypes...>} is \tcode{true}.
1326513253
\end{itemize}
1326613254

1326713255
\pnum
@@ -13404,8 +13392,7 @@
1340413392
\begin{itemdescr}
1340513393
\pnum
1340613394
\constraints
13407-
\tcode{decay_t<F>} is Lvalue-Callable\iref{func.wrap.func}
13408-
for argument types \tcode{ArgTypes...} and return type \tcode{R}.
13395+
\tcode{is_invocable_r_v<R, decay_t<F>\&, ArgTypes...>} is \tcode{true}.
1340913396

1341013397
\pnum
1341113398
\effects

0 commit comments

Comments
 (0)