Tweeny 4.1.0
A Tweening library for modern C++
Loading...
Searching...
No Matches
all_same<... > Struct Template Reference

Detailed Description

template<typename...>
struct tweeny::detail::all_same<... >

A type trait that evaluates to std::true_type.

A type trait to check if all types in a parameter pack are the same.

This specialization of the all_same struct is used when no template parameters are provided. It serves as a base case for type pack evaluation and always evaluates to true_type, representing that an empty pack is trivially considered to have "all the same" types.

This type trait is mainly used as a base case in conjunction with other template specializations that check for type consistency within a parameter pack.

Warning
This structure is private and shouldn't be used directly

This struct inherits from std::conjunction with the result of comparing all types in the parameter pack Rest... using std::is_same, relative to the first type First. The resulting value will evaluate to true_type if all types are the same, otherwise to false_type.

Template Parameters
FirstThe first type in the parameter pack to compare against.
RestThe remaining types in the parameter pack.
Warning
This structure is private and shouldn't be used directly

#include <value-container.h>