8template<
auto FuncType,
typename... ArgTypes>
9constexpr auto is_noexcept_v =
noexcept(FuncType(std::declval<ArgTypes>()...));
11int sum(
int a,
int b)
noexcept
24T
pro(T a, T b)
noexcept
33 stream <<
"sum is marked with noexcept: "
34 << is_noexcept_v<sum, int, int> <<
tpf::endl;
36 stream <<
"summation is marked with noexcept: "
37 << is_noexcept_v<summation, int, int> <<
tpf::endl;
39 stream <<
"pro<int> is marked with noexcept: "
40 << is_noexcept_v<pro<int>, int,
int> <<
tpf::endl;
44 auto pro_int = pro<int>;
51 constexpr auto cpro_int = pro<int>;
53 stream <<
"cpro_int is marked with noexcept: "
54 << is_noexcept_v<cpro_int, int, int> <<
tpf::endl;
int summation(int a, int b)
void examples_for_is_noexcept()
constexpr auto is_noexcept_v
int sum(int a, int b) noexcept
Stream output operators << are implemented.