![]() |
MySQL 9.2.0
Source Code Documentation
|
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... | |
using stdx::ranges::iterator_t = typedef decltype(std::begin(std::declval<T &>())) |
using stdx::ranges::range_reference_t = typedef stdx::iter_reference_t<ranges::iterator_t<R> > |
using stdx::ranges::range_value_t = typedef stdx::iter_value_t<ranges::iterator_t<R> > |
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
container | The container in which to search for the needle. |
needle | The element to search for in the container. |
true
if the needle is found in the container, false
otherwise. stdx::ranges::enumerate_view | ( | R && | ) | -> enumerate_view< R > |