Horizon
Loading...
Searching...
No Matches
Classes | Macros | Functions
common_tuple.hpp File Reference
#include <utility>
#include <meta/meta.hpp>
#include <concepts/concepts.hpp>
#include <range/v3/range_fwd.hpp>
#include <range/v3/detail/adl_get.hpp>
#include <range/v3/functional/bind.hpp>
#include <range/v3/functional/reference_wrapper.hpp>
#include <range/v3/utility/common_type.hpp>
#include <range/v3/utility/tuple_algorithm.hpp>
#include <range/v3/detail/prologue.hpp>
#include <range/v3/detail/epilogue.hpp>

Go to the source code of this file.

Classes

struct  ranges::common_tuple< Ts >
 
struct  ranges::make_common_tuple_fn
 
struct  ranges::common_pair< F, S >
 
struct  ranges::make_common_pair_fn
 
struct  tuple_size<::ranges::common_pair< First, Second > >
 
struct  tuple_element< 0, ::ranges::common_pair< First, Second > >
 
struct  tuple_element< 1, ::ranges::common_pair< First, Second > >
 
struct  tuple_size<::ranges::common_tuple< Ts... > >
 
struct  tuple_element< N, ::ranges::common_tuple< Ts... > >
 

Macros

#define LOGICAL_OP(OP, CONCEPT)
 
#define LOGICAL_OP(OP, CONCEPT, RET)
 

Functions

 ranges::template (typename F1, typename S1, typename F2, typename S2)(AND equality_comparable_with< S1
 
S2 bool ranges::operator== (common_pair< F1, S1 > const &a, common_pair< F2, S2 > const &b)
 
S2 bool ranges::operator== (common_pair< F1, S1 > const &a, std::pair< F2, S2 > const &b)
 
S2 bool ranges::operator== (std::pair< F1, S1 > const &a, common_pair< F2, S2 > const &b)
 
S2 bool ranges::operator< (common_pair< F1, S1 > const &a, common_pair< F2, S2 > const &b)
 
S2 bool ranges::operator< (std::pair< F1, S1 > const &a, common_pair< F2, S2 > const &b)
 
S2 bool ranges::operator< (common_pair< F1, S1 > const &a, std::pair< F2, S2 > const &b)
 

Macro Definition Documentation

◆ LOGICAL_OP [1/2]

#define LOGICAL_OP (   OP,
  CONCEPT 
)
Value:
template(typename... Ts, typename... Us)( \
requires and_v<CONCEPT<Ts, Us>...>) \
bool operator OP(common_tuple<Ts...> const & a, common_tuple<Us...> const & b) \
{ \
return a.base() OP b.base(); \
} \
template(typename... Ts, typename... Us)( \
requires and_v<CONCEPT<Ts, Us>...>) \
bool operator OP(std::tuple<Ts...> const & a, common_tuple<Us...> const & b) \
{ \
return a OP b.base(); \
} \
template(typename... Ts, typename... Us)( \
requires and_v<CONCEPT<Ts, Us>...>) \
bool operator OP(common_tuple<Ts...> const & a, std::tuple<Us...> const & b) \
{ \
return a.base() OP b; \
} \

◆ LOGICAL_OP [2/2]

#define LOGICAL_OP (   OP,
  CONCEPT,
  RET 
)
Value:
template(typename F1, typename S1, typename F2, typename S2)( \
requires CONCEPT<F1, F2> AND CONCEPT<S1, S2>) \
bool operator OP(common_pair<F1, S1> const & a, common_pair<F2, S2> const & b) \
{ \
return RET; \
} \
template(typename F1, typename S1, typename F2, typename S2)( \
requires CONCEPT<F1, F2> AND CONCEPT<S1, S2>) \
bool operator OP(std::pair<F1, S1> const & a, common_pair<F2, S2> const & b) \
{ \
return RET; \
} \
template(typename F1, typename S1, typename F2, typename S2)( \
requires CONCEPT<F1, F2> AND CONCEPT<S1, S2>) \
bool operator OP(common_pair<F1, S1> const & a, std::pair<F2, S2> const & b) \
{ \
return RET; \
} \