26 using value_type =
typename std::iterator_traits<iterator>::value_type;
27 using pointer =
typename std::iterator_traits<iterator>::pointer;
28 using reference =
typename std::iterator_traits<iterator>::reference;
69 return static_cast<size_t>(std::distance(
begin(),
end()));
79 template <
typename Iterator>
84 template <
typename Container>
auto end() const noexcept
auto begin() const noexcept
名称范围迭代支持
#define DEBUG_ASSERT(predicate)
代表容器中一段元素的视图,基本上是一对起始和结束迭代器。
ListView & operator=(const ListView &)=delete
const_iterator cend() const
typename std::add_const< IT >::type const_iterator
typename std::iterator_traits< iterator >::difference_type difference_type
const_iterator begin() const
typename std::iterator_traits< iterator >::pointer pointer
ListView(iterator begin, iterator end)
typename std::iterator_traits< iterator >::value_type value_type
const_iterator cbegin() const
ListView(const ListView &)=default
const_iterator end() const
typename std::iterator_traits< iterator >::reference reference
static auto MakeListView(Iterator begin, Iterator end)