folly::iterator_category_matches_v

Whether an iterator's category matches Category (std::input_iterator_tag, std::output_iterator_tag, etc). Defined for non-iterator types as well.

Synopsis

Declared in <folly/container/Iterator.h>

template<
    typename Iter,
    typename Category>
inline constexpr bool iterator_category_matches_v = detail::iterator_category_matches_v_<Iter, Category>;

Description

Useful for containers deduction guides implementation.