Whether a type behaves like a tuple. More...
#include <seqan3/core/concept/tuple.hpp>
Inheritance diagram for tuple_like:Related Functions | |
(Note that these are not member functions.) | |
Requirements for seqan3::tuple_like | |
You can expect these (meta-)functions on all types that implement seqan3::tuple_like. | |
| size_t | tuple_size_v |
| A unary type trait that holds the number of elements in the tuple. More... | |
| tuple_elment_t | |
| A transformation trait that holds the type of elements in the tuple. More... | |
| auto && | get (type &&val) |
| Return the i-th element of the tuple. More... | |
Requirements for std::totally_ordered | |
You can expect these functions on all types that implement std::totally_ordered. | |
| bool | operator< (type const &lhs, type const &rhs) |
| Less-than, greater-than and -or-equal comparisons. More... | |
| bool | operator<= (type const &lhs, type const &rhs) |
| Less-than, greater-than and -or-equal comparisons. More... | |
| bool | operator> (type const &lhs, type const &rhs) |
| Less-than, greater-than and -or-equal comparisons. More... | |
| bool | operator>= (type const &lhs, type const &rhs) |
| Less-than, greater-than and -or-equal comparisons. More... | |
Requirements for std::equality_comparable | |
You can expect these functions on all types that implement std::Equality_comparable. | |
| bool | operator== (type const &lhs, type const &rhs) |
| (In-)Equality comparison. More... | |
| bool | operator!= (type const &lhs, type const &rhs) |
| (In-)Equality comparison. More... | |
Whether a type behaves like a tuple.
Types that meet this concept are for example std::tuple, std::pair, std::array, seqan3::pod_tuple, seqan3::record. The std::totally_ordered will only be required if all types contained in the tuple like data structure are them selfs strict totally ordered.
|
related |
Return the i-th element of the tuple.
| i | The index of the element to return (of type size_t). |
| [in,out] | val | The tuple-like object to operate on. |
|
related |
A transformation trait that holds the type of elements in the tuple.
| i | Index of the queried element type. |
| type | The tuple-like type. |
|
related |
A unary type trait that holds the number of elements in the tuple.
| type | The tuple-like type. |