5template<
auto FuncType,
typename... ArgTypes>
6constexpr bool is_noexcept_v =
noexcept(FuncType(std::declval<ArgTypes>()...));
8int sum(
int a,
int b)
noexcept
14T
pro(T a, T b)
noexcept
19template<
auto FuncPtr,
typename... ArgTypes>
26 stream << is_noexcept_v<sum, int, int> <<
tpf::endl;
28 constexpr auto pro_func = pro<int>;
32 stream << is_noexcept_v<pro_func, int, int> <<
tpf::endl;
constexpr bool is_noexcept_v
void example_is_noexcept()
constexpr auto func_ptr_t
int sum(int a, int b) noexcept
Stream output operators << are implemented.