Skip to content

Instantly share code, notes, and snippets.

@gonidelis
Created June 5, 2020 10:03
Show Gist options
  • Save gonidelis/2c0cda6e01df028ad25c530732c37236 to your computer and use it in GitHub Desktop.
Save gonidelis/2c0cda6e01df028ad25c530732c37236 to your computer and use it in GitHub Desktop.
#include <hpx/iterator_support/traits/is_sentinel_for.hpp>
#include <hpx/testing.hpp>
#include "iter_sent.hpp"
void is_sentinel_for()
{
HPX_TEST_MSG((hpx::traits::is_sentinel_for<Iterator<std::int64_t>{0}, Sentinel<int64_t>{100}>::value == true), "sent for iter");
}
///////////////////////////////////////////////////////////////////////////////
int main(int argc, char* argv[])
{
{
is_sentinel_for();
}
return hpx::util::report_errors();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment