VCCC  2024.05
VisualCamp Common C++ library
tuple_like< T > Struct Template Reference

#include </home/jarvis/actions-runner/jarvis-vccc-2/_work/vccc/vccc/include/vccc/__tuple/tuple_like.hpp>

+ Inheritance diagram for tuple_like< T >:

Detailed Description

template<typename T>
struct vccc::tuple_like< T >

template<typename T>
struct vccc::pair_like< T >
check if tuple-like objects with exactly N elements.
Definition: tuple_like.hpp:106

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, or
  • std::ranges::subrange.

2) pair-like objects are tuple-like objects with exactly 2 elements.

Notes

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.

See also
pair_like: pair-like objects are tuple-like objects with exactly 2 elements.

The documentation for this struct was generated from the following file: