Skip to content

Commit ad58ebe

Browse files
jensmaurerzygoloid
authored andcommitted
P0758R1 Implicit conversion traits and utility functions
1 parent 83af2b5 commit ad58ebe

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

source/utilities.tex

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15333,6 +15333,7 @@
1533315333

1533415334
\rSec2[meta.type.synop]{Header \tcode{<type_traits>} synopsis}
1533515335

15336+
\indexlibrary{\idxcode{is_nothrow_convertible_v}}%
1533615337
\indexhdr{type_traits}%
1533715338
\indexlibrary{\idxcode{type_identity_t}}%
1533815339
\begin{codeblock}
@@ -15436,6 +15437,7 @@
1543615437
template<class T, class U> struct is_same;
1543715438
template<class Base, class Derived> struct is_base_of;
1543815439
template<class From, class To> struct is_convertible;
15440+
template<class From, class To> struct is_nothrow_convertible;
1543915441

1544015442
template<class Fn, class... ArgTypes> struct is_invocable;
1544115443
template<class R, class Fn, class... ArgTypes> struct is_invocable_r;
@@ -15709,6 +15711,8 @@
1570915711
inline constexpr bool is_base_of_v = is_base_of<Base, Derived>::value;
1571015712
template<class From, class To>
1571115713
inline constexpr bool is_convertible_v = is_convertible<From, To>::value;
15714+
template<class From, class To>
15715+
inline constexpr bool is_nothrow_convertible_v = is_nothrow_convertible<From, To>::value;
1571215716
template<class Fn, class... ArgTypes>
1571315717
inline constexpr bool is_invocable_v = is_invocable<Fn, ArgTypes...>::value;
1571415718
template<class R, class Fn, class... ArgTypes>
@@ -16516,6 +16520,16 @@
1651616520
types, arrays of unknown
1651716521
bound, or \cv{}~\tcode{void} types. \\ \rowsep
1651816522

16523+
\indexlibrary{\idxcode{is_nothrow_convertible}}%
16524+
\tcode{template<class From, class To>}\br
16525+
\tcode{struct is_nothrow_convertible;} &
16526+
\tcode{is_convertible_v<From, To>} is \tcode{true} and
16527+
the conversion, as defined by \tcode{is_convertible},
16528+
is known not to throw any exceptions\iref{expr.unary.noexcept} &
16529+
\tcode{From} and \tcode{To} shall be complete
16530+
types, arrays of unknown
16531+
bound, or \cv{}~\tcode{void} types. \\ \rowsep
16532+
1651916533
\indexlibrary{\idxcode{is_invocable}}%
1652016534
\tcode{template<class Fn, class... ArgTypes>}\br
1652116535
\tcode{struct is_invocable;} &

0 commit comments

Comments
 (0)