![]() |
VCCC
2024.05
VisualCamp Common C++ library
|
#include </home/jarvis/actions-runner/jarvis-vccc-2/_work/vccc/vccc/include/vccc/__tuple/tuple_like.hpp>
1) A type T models and satisfies the concept tuple-like if std::remove_cvref_t<T> is a specialization of
std::array
,std::pair
,std::tuple
, orstd::ranges::subrange
2) pair-like objects are tuple-like objects with exactly 2 elements.
tuple-like types implement the tuple protocol, i.e., such types can be used with std::get
, std::tuple_element
and std::tuple_size
.
Elements of tuple-like types can be bound with structured binding.