Skip to content

Commit

Permalink
✨ Add libstdc++ iterator wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePhD committed Nov 5, 2021
1 parent 63a61af commit 0986408
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/ztd/idk/detail/mark_contiguous.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ namespace ztd {
: public __mark_contiguous<decltype(::std::declval<_It>()._Unwrapped())> { };
#endif

#if ZTD_IS_ON(ZTD_LIBCXX_I_)
template <typename _It>
struct __mark_contiguous<::std::__wrap_iter<_It>> : public __mark_contiguous<_It> { };
#endif

template <typename _It>
inline constexpr bool __mark_contiguous_v = __mark_contiguous<_It>::value;

Expand Down

0 comments on commit 0986408

Please sign in to comment.