MySQL 9.6.0
Source Code Documentation
base_binary_operation_views.h File Reference

Experimental API header. More...

#include <ranges>
#include <type_traits>
#include "mysql/sets/binary_operation.h"

Go to the source code of this file.

Namespaces

namespace  mysql
 
namespace  mysql::sets
 

Typedefs

template<Binary_operation binary_operation, class Source1_t , class Source2_t >
using mysql::sets::Binary_operation_view_type = std::conditional_t<(int) binary_operation==(int) Binary_operation::op_union, Union_view< Source1_t, Source2_t >, std::conditional_t<(int) binary_operation==(int) Binary_operation::op_intersection, Intersection_view< Source1_t, Source2_t >, std::conditional_t<(int) binary_operation==(int) Binary_operation::op_subtraction, Subtraction_view< Source1_t, Source2_t >, void > > >
 For a Binary_operation and two operand sets, gives the corresponding Union_view, Intersection_view, or Subtraction_view class. More...
 

Functions

template<Binary_operation binary_operation, class Source1_t , class Source2_t >
auto mysql::sets::make_binary_operation_view (const Source1_t &source1, const Source2_t &source2)
 Return the Union_view, Intersection_view, or Subtraction_view over the arguments, according to the given Binary_operation. More...
 
template<class Source1_t , class Source2_t >
auto mysql::sets::make_union_view (const Source1_t &source1, const Source2_t &source2)
 Return the Union_view over the arguments. More...
 
template<class Source1_t , class Source2_t >
auto mysql::sets::make_intersection_view (const Source1_t &source1, const Source2_t &source2)
 Return the Intersection_view over the arguments. More...
 
template<class Source1_t , class Source2_t >
auto mysql::sets::make_subtraction_view (const Source1_t &source1, const Source2_t &source2)
 Return the Subtraction_view over the arguments. More...
 

Detailed Description

Experimental API header.