13 #ifndef TINYMPL_VARIADIC_IS_UNIQUE_HPP
14 #define TINYMPL_VARIADIC_IS_UNIQUE_HPP
16 #include <tinympl/variadic/find.hpp>
17 #include <type_traits>
37 template<
class Head,
class ... Tail>
38 struct is_unique<Head, Tail...> : std::conditional <
39 find<Head, Tail...>::type::value == sizeof ...( Tail ),
40 typename is_unique<Tail...>::type,
41 std::integral_constant<bool, false> >::type
45 std::integral_constant<bool, true>
52 #endif // TINYMPL_VARIADIC_IS_UNIQUE_HPP
Determines whether the input sequence contains only unique elements.
Definition: is_unique.hpp:35