CPP Common Type

Introduced in CPP11, CPP Common Type deduces the common type shared by multiple types using standard type promotion rules. It supports type-safe function signatures and variadic templates.

CPP Common Type simplifies generic algorithm development, type trait evaluation, and template specialization. It ensures type compatibility across heterogeneous input types.

https://en.cppreference.com/w/cpp/types/common_type