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

Go to the source code of this file.

Typedefs

template<typename Type >
using flat_type_t1 = std::remove_cv_t< std::remove_reference_t< std::decay_t< Type > > >
 
template<typename Type >
using flat_type_t2 = std::remove_cv_t< std::decay_t< std::remove_reference_t< Type > > >
 

Functions

void test_flat_type_t ()
 
int sum (int, float)
 
template<typename Type >
decltype(auto) decay (Type &&arg)
 
void test_decay ()
 
void test_decay_func ()
 
int main ()
 

Variables

tpf::sstream stream
 
auto endl = tpf::endl
 

Typedef Documentation

◆ flat_type_t1

template<typename Type >
using flat_type_t1 = std::remove_cv_t<std::remove_reference_t<std::decay_t<Type> >>

Definition at line 4 of file 053-decay.cpp.

◆ flat_type_t2

template<typename Type >
using flat_type_t2 = std::remove_cv_t<std::decay_t<std::remove_reference_t<Type> >>

Definition at line 7 of file 053-decay.cpp.

Function Documentation

◆ decay()

template<typename Type >
decltype(auto) decay ( Type &&  arg)

Definition at line 30 of file 053-decay.cpp.

Here is the caller graph for this function:

◆ main()

int main ( )

Definition at line 63 of file 053-decay.cpp.

Here is the call graph for this function:

◆ sum()

int sum ( int  ,
float   
)

Definition at line 27 of file 053-decay.cpp.

Here is the caller graph for this function:

◆ test_decay()

void test_decay ( )

Definition at line 40 of file 053-decay.cpp.

Here is the call graph for this function:

◆ test_decay_func()

void test_decay_func ( )

Definition at line 58 of file 053-decay.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_flat_type_t()

void test_flat_type_t ( )

Definition at line 12 of file 053-decay.cpp.

Variable Documentation

◆ endl

auto endl = tpf::endl

Definition at line 10 of file 053-decay.cpp.

◆ stream

tpf::sstream stream

Definition at line 9 of file 053-decay.cpp.