Last active
June 14, 2020 15:27
-
-
Save gonidelis/34c4e0ce645d4e5564da3076da74ed3f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <hpx/type_support/always_void.hpp> | |
#include <hpx/iterator_support/traits/is_iterator.hpp> | |
#include <utility> | |
namespace hpx { namespace traits { | |
template <typename Sent, typename Iter, typename Enable = void> | |
struct is_sentinel_for : std::false_type | |
{ | |
}; | |
template <typename Sent, typename Iter> | |
struct is_sentinel_for<Sent, Iter, | |
typename util::always_void< | |
typename std::enable_if<is_iterator<Iter>::value>::type, | |
typename detail::equality_result<Iter, Sent>::type, | |
typename detail::equality_result<Sent, Iter>::type, | |
typename detail::inequality_result<Iter, Sent>::type, | |
typename detail::inequality_result<Sent, Iter>::type>::type> | |
: std::true_type | |
{ | |
}; | |
}} // namespace hpx::traits |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment