MySQL 9.6.0
Source Code Documentation
tuple_find.h File Reference

Experimental API header. More...

#include <tuple>

Go to the source code of this file.

Classes

struct  mysql::utils::Tuple_find_helper< Tuple, Pred, index >
 Primary template for helper struct used to define Tuple_find_index. More...
 
struct  mysql::utils::Tuple_find_helper< Tuple, Pred, index >
 Specialization of Tuple_find_helper to the case where the component at position index satisfies the predicate. More...
 
struct  mysql::utils::Tuple_count_helper< Tuple, Pred, index >
 Primary template for helper struct used to define Tuple_find_index. More...
 
struct  mysql::utils::Tuple_count_helper< Tuple, Pred, index >
 Specialization of Tuple_count_helper to the case where index is in range. More...
 
struct  mysql::utils::detail::Is_same_helper< Type1 >
 Struct template with with one template argument, having a member type Predicate, which is a type predicate that holds for types that are equal to the template argument of the (outer) struct. More...
 

Namespaces

namespace  mysql
 
namespace  mysql::utils
 
namespace  mysql::utils::detail
 

Concepts

concept  mysql::utils::Tuple_has_matching_element_type
 True if at least one element type in the tuple-like type mathes the type predicate.
 
concept  mysql::utils::Tuple_has_element_type
 True if the tuple has an element of the given type.
 

Typedefs

template<class Tuple , template< class > class Pred>
using mysql::utils::Tuple_find = Tuple_find_helper< Tuple, Pred >::type
 The first element type in the tuple-like type that matches the type predicate. More...
 

Functions

template<template< class > class Pred, class Tuple >
auto mysql::utils::tuple_find (const Tuple &tuple)
 Return the value of the first component of the tuple-like object whose type matches the given type predicate. More...
 

Variables

template<class Tuple , template< class > class Pred>
constexpr std::size_t mysql::utils::Tuple_find_index
 Index of the first element of the tuple-like type whose type matches the type predicate. More...
 
template<class Tuple , template< class > class Pred>
constexpr std::size_t mysql::utils::Tuple_matching_element_type_count
 The number of tuple element types that match the given predicate. More...
 

Detailed Description

Experimental API header.