TermOx
common_type.hpp
1 #ifndef TERMOX_COMMON_COMMON_TYPE_HPP
2 #define TERMOX_COMMON_COMMON_TYPE_HPP
3 #include <type_traits>
4 
5 #include <termox/widget/widget.hpp>
6 
7 namespace ox {
8 
10 
12 template <typename T, typename U>
13 using Common_type = std::conditional_t<std::is_same_v<T, U>, T, ox::Widget>;
14 
15 } // namespace ox
16 #endif // TERMOX_COMMON_COMMON_TYPE_HPP
Definition: widget.hpp:31