SeqAn3 3.4.0-rc.3
The Modern C++ library for sequence analysis.
|
Behaves like std::tuple but is an aggregate PODType. More...
#include <seqan3/utility/tuple/pod_tuple.hpp>
Public Member Functions | |
Comparison operators | |
constexpr bool | operator== (pod_tuple const &rhs) const noexcept |
Checks whether *this is equal to rhs . | |
constexpr bool | operator!= (pod_tuple const &rhs) const noexcept |
Checks whether *this is not equal to rhs . | |
constexpr bool | operator< (pod_tuple const &rhs) const noexcept |
Checks whether *this is less than rhs . | |
constexpr bool | operator> (pod_tuple const &rhs) const noexcept |
Checks whether *this is greater than rhs . | |
constexpr bool | operator<= (pod_tuple const &rhs) const noexcept |
Checks whether *this is less than or equal to rhs . | |
constexpr bool | operator>= (pod_tuple const &rhs) const noexcept |
Checks whether *this is greater than or equal to rhs . | |
Additional Inherited Members | |
Related Symbols inherited from tuple_like | |
size_t | tuple_size_v |
A unary type trait that holds the number of elements in the tuple. | |
tuple_elment_t | |
A transformation trait that holds the type of elements in the tuple. | |
auto && | get (type &&val) |
Return the i-th element of the tuple. | |
Behaves like std::tuple but is an aggregate PODType.
type0 | The first type (the first type). |
...types | 0-n types (the remaining types of the values to be stored). |
This class behaves like std::tuple, but it is itself a POD type while std::tuple is not (even if all contained types are POD). Since the only benefit of this class is that it stays POD it actually enforces this on all types in the tuple (if you want to add non POD types, just use std::tuple instead).
You can use seqan3::get or std::get and also structured bindings to access the elements in the tuple.