Spec-Zone.ru › C++

std::ranges::subrange<I,S,K>::empty

constexpr bool empty() const;
(since C++20)

Checks whether the subrange is empty.

Return value

begin_ == end_.

Example

See also

size
obtains the size of the subrange
(public member function)
empty
(C++17)
checks whether the container is empty
(function template)
ranges::empty
(C++20)
checks whether a range is empty
(customization point object)

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/cpp/ranges/subrange/empty

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API