|
15321 | 15321 |
|
15322 | 15322 | \rSec2[meta.type.synop]{Header \tcode{<type_traits>} synopsis}
|
15323 | 15323 |
|
| 15324 | +\indexlibrary{\idxcode{is_nothrow_convertible_v}}% |
15324 | 15325 | \indexhdr{type_traits}%
|
15325 | 15326 | \begin{codeblock}
|
15326 | 15327 | namespace std {
|
|
15423 | 15424 | template<class T, class U> struct is_same;
|
15424 | 15425 | template<class Base, class Derived> struct is_base_of;
|
15425 | 15426 | template<class From, class To> struct is_convertible;
|
| 15427 | + template<class From, class To> struct is_nothrow_convertible; |
15426 | 15428 |
|
15427 | 15429 | template<class Fn, class... ArgTypes> struct is_invocable;
|
15428 | 15430 | template<class R, class Fn, class... ArgTypes> struct is_invocable_r;
|
|
15693 | 15695 | inline constexpr bool is_base_of_v = is_base_of<Base, Derived>::value;
|
15694 | 15696 | template<class From, class To>
|
15695 | 15697 | 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; |
15696 | 15700 | template<class Fn, class... ArgTypes>
|
15697 | 15701 | inline constexpr bool is_invocable_v = is_invocable<Fn, ArgTypes...>::value;
|
15698 | 15702 | template<class R, class Fn, class... ArgTypes>
|
|
16500 | 16504 | types, arrays of unknown
|
16501 | 16505 | bound, or \cv{}~\tcode{void} types. \\ \rowsep
|
16502 | 16506 |
|
| 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 | + |
16503 | 16517 | \indexlibrary{\idxcode{is_invocable}}%
|
16504 | 16518 | \tcode{template<class Fn, class... ArgTypes>}\br
|
16505 | 16519 | \tcode{struct is_invocable;} &
|
|
0 commit comments