Skip to content

Commit 046ee9f

Browse files
jensmaurerzygoloid
authored andcommitted
P0758R1 Implicit conversion traits and utility functions
1 parent 591545d commit 046ee9f

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
@@ -15321,6 +15321,7 @@
1532115321

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

15324+
\indexlibrary{\idxcode{is_nothrow_convertible_v}}%
1532415325
\indexhdr{type_traits}%
1532515326
\begin{codeblock}
1532615327
namespace std {
@@ -15423,6 +15424,7 @@
1542315424
template<class T, class U> struct is_same;
1542415425
template<class Base, class Derived> struct is_base_of;
1542515426
template<class From, class To> struct is_convertible;
15427+
template<class From, class To> struct is_nothrow_convertible;
1542615428

1542715429
template<class Fn, class... ArgTypes> struct is_invocable;
1542815430
template<class R, class Fn, class... ArgTypes> struct is_invocable_r;
@@ -15693,6 +15695,8 @@
1569315695
inline constexpr bool is_base_of_v = is_base_of<Base, Derived>::value;
1569415696
template<class From, class To>
1569515697
inline constexpr bool is_convertible_v = is_convertible<From, To>::value;
15698+
template<class From, class To>
15699+
inline constexpr bool is_nothrow_convertible_v = is_nothrow_convertible<From, To>::value;
1569615700
template<class Fn, class... ArgTypes>
1569715701
inline constexpr bool is_invocable_v = is_invocable<Fn, ArgTypes...>::value;
1569815702
template<class R, class Fn, class... ArgTypes>
@@ -16500,6 +16504,16 @@
1650016504
types, arrays of unknown
1650116505
bound, or \cv{}~\tcode{void} types. \\ \rowsep
1650216506

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

0 commit comments

Comments
 (0)