Skip to content

Commit b711930

Browse files
committed
P0758R1 Implicit conversion traits and utility functions
1 parent 591545d commit b711930

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

source/utilities.tex

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15423,6 +15423,7 @@
1542315423
template<class T, class U> struct is_same;
1542415424
template<class Base, class Derived> struct is_base_of;
1542515425
template<class From, class To> struct is_convertible;
15426+
template<class From, class To> struct is_nothrow_convertible;
1542615427

1542715428
template<class Fn, class... ArgTypes> struct is_invocable;
1542815429
template<class R, class Fn, class... ArgTypes> struct is_invocable_r;
@@ -15693,6 +15694,8 @@
1569315694
inline constexpr bool is_base_of_v = is_base_of<Base, Derived>::value;
1569415695
template<class From, class To>
1569515696
inline constexpr bool is_convertible_v = is_convertible<From, To>::value;
15697+
template<class From, class To>
15698+
inline constexpr bool is_nothrow_convertible_v = is_nothrow_convertible<From, To>::value;
1569615699
template<class Fn, class... ArgTypes>
1569715700
inline constexpr bool is_invocable_v = is_invocable<Fn, ArgTypes...>::value;
1569815701
template<class R, class Fn, class... ArgTypes>
@@ -16500,6 +16503,16 @@
1650016503
types, arrays of unknown
1650116504
bound, or \cv{}~\tcode{void} types. \\ \rowsep
1650216505

16506+
\indexlibrary{\idxcode{is_nothrow_convertible}}%
16507+
\tcode{template<class From, class To>}\br
16508+
\tcode{struct is_nothrow_convertible;} &
16509+
\tcode{is_convertible_v<From, To>} is \tcode{true} and
16510+
the conversion, as defined by \tcode{is_convertible},
16511+
is known not to throw any exceptions\iref{expr.unary.noexcept} &
16512+
\tcode{From} and \tcode{To} shall be complete
16513+
types, arrays of unknown
16514+
bound, or \cv{}~\tcode{void} types. \\ \rowsep
16515+
1650316516
\indexlibrary{\idxcode{is_invocable}}%
1650416517
\tcode{template<class Fn, class... ArgTypes>}\br
1650516518
\tcode{struct is_invocable;} &

0 commit comments

Comments
 (0)