Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion libcxx/include/__filesystem/path_iterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ class _LIBCPP_EXPORTED_FROM_ABI path::iterator {

public:
typedef input_iterator_tag iterator_category;
typedef bidirectional_iterator_tag iterator_concept;
# if _LIBCPP_STD_VER >= 20
using iterator_concept = bidirectional_iterator_tag;
# endif

typedef path value_type;
typedef ptrdiff_t difference_type;
Expand Down
2 changes: 2 additions & 0 deletions libcxx/include/__functional/identity.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ struct __identity {
return std::forward<_Tp>(__t);
}

#if _LIBCPP_STD_VER >= 14
using is_transparent = void;
#endif
};

template <>
Expand Down
4 changes: 4 additions & 0 deletions libcxx/include/__iterator/iterator_traits.h
Original file line number Diff line number Diff line change
Expand Up @@ -351,16 +351,20 @@ struct iterator_traits<_Tp*> {
template <class _Tp>
using __iterator_category _LIBCPP_NODEBUG = typename _Tp::iterator_category;

#if _LIBCPP_STD_VER >= 20
template <class _Tp>
using __iterator_concept _LIBCPP_NODEBUG = typename _Tp::iterator_concept;
#endif

template <class _Tp, class _Up>
using __has_iterator_category_convertible_to _LIBCPP_NODEBUG =
is_convertible<__detected_or_t<__nat, __iterator_category, iterator_traits<_Tp> >, _Up>;

#if _LIBCPP_STD_VER >= 20
template <class _Tp, class _Up>
using __has_iterator_concept_convertible_to _LIBCPP_NODEBUG =
is_convertible<__detected_or_t<__nat, __iterator_concept, _Tp>, _Up>;
#endif

template <class _Tp>
using __has_input_iterator_category _LIBCPP_NODEBUG = __has_iterator_category_convertible_to<_Tp, input_iterator_tag>;
Expand Down
Loading