Simple-Utility v2.3.1
Loading...
Searching...
No Matches
sl::concepts::tuple Concept Reference

Determines whether a type can be used as a tuple-like. More...

#include <General.hpp>

Concept definition

template<class Tuple>
&& detail::tuple_indices_v<Tuple>
Determines whether a type can be used as a tuple-like.
Definition: General.hpp:105
Determines whether a type satisfies the requirements of a type-list.
Definition: TypeList.hpp:103

Detailed Description

Determines whether a type can be used as a tuple-like.

Requires the type-traits std::tuple_size to be defined for the given type and its member value denoting the the correct tuple size. The std::tuple_element trait and the get function must to be defined for each index in the interval [0, N), where N is the tuple size of the given type.

See also
https://en.cppreference.com/w/cpp/utility/tuple_element
https://en.cppreference.com/w/cpp/utility/tuple_size
Template Parameters
TupleType to check.