MySQL 9.2.0
Source Code Documentation
stdx::ranges Namespace Reference

Namespaces

namespace  views
 

Classes

class  enumerate_view
 enumerate_view over a range. More...
 

Typedefs

template<class T >
using iterator_t = decltype(std::begin(std::declval< T & >()))
 
template<class R >
using range_value_t = stdx::iter_value_t< ranges::iterator_t< R > >
 
template<class R >
using range_reference_t = stdx::iter_reference_t< ranges::iterator_t< R > >
 

Functions

template<class R >
 enumerate_view (R &&) -> enumerate_view< R >
 
template<std::ranges::input_range Range, typename T >
requires std::convertible_to<T, typename Range::value_type>
bool contains (const Range &container, const T &needle)
 Checks if a container contains a specified element. More...
 

Typedef Documentation

◆ iterator_t

template<class T >
using stdx::ranges::iterator_t = typedef decltype(std::begin(std::declval<T &>()))

◆ range_reference_t

◆ range_value_t

template<class R >
using stdx::ranges::range_value_t = typedef stdx::iter_value_t<ranges::iterator_t<R> >

Function Documentation

◆ contains()

template<std::ranges::input_range Range, typename T >
requires std::convertible_to<T, typename Range::value_type>
bool stdx::ranges::contains ( const Range &  container,
const T &  needle 
)

Checks if a container contains a specified element.

Implements https://en.cppreference.com/w/cpp/algorithm/ranges/contains

Parameters
containerThe container in which to search for the needle.
needleThe element to search for in the container.
Returns
true if the needle is found in the container, false otherwise.

◆ enumerate_view()

template<class R >
stdx::ranges::enumerate_view ( R &&  ) -> enumerate_view< R >