Advertisement
Guest User

Untitled

a guest
Nov 20th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.14 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. template <typename T, typename Ts...>
  4. constexpr bool isHomogenous(T, Ts...)
  5. {
  6.     return (std::is_same_v<T, Ts> && ...);
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement