Skip to content

Type decay

本文讨论C family language中的type decay。

Decay in implicit type conversion

本节介绍的implicit type conversion是自动发生的。

Array to pointer decay

参见:

1) cppreference Array to pointer conversion

2) cppreference Array-to-pointer decay

3) C-and-C++\Pointer-and-array\Array章节

Function to pointer

参见:

1) cppreference Function to pointer

std::decay

在进行generic programming的时候,std::decay能够实现上述 "decay in implicit type conversion",参见:

1) cppreference std::decay

2) C++\Library\Standard-library\Utility-library\Language-support\Type-support\Type-traits\Type-transformations\decay章节