C++ Library Extensions 2022.12.09
To help learn modern C++ programming
013-alias_noexcept.cpp File Reference
#include <tpf_output.hpp>
Include dependency graph for 013-alias_noexcept.cpp:

Go to the source code of this file.

Functions

int sum (int a, int b) noexcept
 
int summation (int a, int b)
 
template<typename T >
pro (T a, T b) noexcept
 
void examples_for_is_noexcept ()
 
int main ()
 

Variables

template<auto FuncType, typename... ArgTypes>
constexpr auto is_noexcept_v = noexcept(FuncType(std::declval<ArgTypes>()...))
 

Function Documentation

◆ examples_for_is_noexcept()

void examples_for_is_noexcept ( )

Definition at line 29 of file 013-alias_noexcept.cpp.

Here is the caller graph for this function:

◆ main()

int main ( )

Definition at line 71 of file 013-alias_noexcept.cpp.

Here is the call graph for this function:

◆ pro()

template<typename T >
T pro ( a,
b 
)
noexcept

Definition at line 24 of file 013-alias_noexcept.cpp.

◆ sum()

int sum ( int  a,
int  b 
)
noexcept

Definition at line 11 of file 013-alias_noexcept.cpp.

◆ summation()

int summation ( int  a,
int  b 
)

Definition at line 16 of file 013-alias_noexcept.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ is_noexcept_v

template<auto FuncType, typename... ArgTypes>
constexpr auto is_noexcept_v = noexcept(FuncType(std::declval<ArgTypes>()...))
constexpr

Definition at line 9 of file 013-alias_noexcept.cpp.