|
15333 | 15333 |
|
15334 | 15334 | \rSec2[meta.type.synop]{Header \tcode{<type_traits>} synopsis}
|
15335 | 15335 |
|
| 15336 | +\indexlibrary{\idxcode{is_nothrow_convertible_v}}% |
15336 | 15337 | \indexhdr{type_traits}%
|
15337 | 15338 | \indexlibrary{\idxcode{type_identity_t}}%
|
15338 | 15339 | \begin{codeblock}
|
|
15436 | 15437 | template<class T, class U> struct is_same;
|
15437 | 15438 | template<class Base, class Derived> struct is_base_of;
|
15438 | 15439 | template<class From, class To> struct is_convertible;
|
| 15440 | + template<class From, class To> struct is_nothrow_convertible; |
15439 | 15441 |
|
15440 | 15442 | template<class Fn, class... ArgTypes> struct is_invocable;
|
15441 | 15443 | template<class R, class Fn, class... ArgTypes> struct is_invocable_r;
|
|
15709 | 15711 | inline constexpr bool is_base_of_v = is_base_of<Base, Derived>::value;
|
15710 | 15712 | template<class From, class To>
|
15711 | 15713 | 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; |
15712 | 15716 | template<class Fn, class... ArgTypes>
|
15713 | 15717 | inline constexpr bool is_invocable_v = is_invocable<Fn, ArgTypes...>::value;
|
15714 | 15718 | template<class R, class Fn, class... ArgTypes>
|
|
16516 | 16520 | types, arrays of unknown
|
16517 | 16521 | bound, or \cv{}~\tcode{void} types. \\ \rowsep
|
16518 | 16522 |
|
| 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 | + |
16519 | 16533 | \indexlibrary{\idxcode{is_invocable}}%
|
16520 | 16534 | \tcode{template<class Fn, class... ArgTypes>}\br
|
16521 | 16535 | \tcode{struct is_invocable;} &
|
|
0 commit comments