VCCC  2024.05
VisualCamp Common C++ library
common_type.hpp File Reference
#include <chrono>
#include <type_traits>
#include <utility>
#include "vccc/__tuple/tuple_like.hpp"
#include "vccc/__type_traits/has_typename_type.hpp"
#include "vccc/__type_traits/is_referenceable.hpp"
#include "vccc/__type_traits/void_t.hpp"

Go to the source code of this file.

Classes

struct  common_type<>
 
struct  common_type< T >
 
struct  common_type< T1, T2 >
 
struct  common_type< T1, T2, Ts... >
 
struct  common_type< std::pair< T1, T2 >, std::pair< U1, U2 > >
 
struct  common_type< std::chrono::duration< Rep1, Period1 >, std::chrono::duration< Rep2, Period2 > >
 
struct  common_type< std::chrono::time_point< Clock, Duration1 >, std::chrono::time_point< Clock, Duration2 > >
 

Namespaces

 vccc
 

Typedefs

template<typename ... T>
using common_type_t = typename common_type< T... >::type