blob: 9b68bea0864ae28265959cea7a9ef1c5bf21fb44 [file] [log] [blame]
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
// UNSUPPORTED: c++03, c++11, c++14, c++17
#include <iterator>
#include <type_traits>
#include <test_iterators.h>
static_assert(std::is_same_v<decltype(std::move_sentinel(std::default_sentinel_t{})),
std::move_sentinel<std::default_sentinel_t>>);
static_assert(
std::is_same_v<decltype(std::move_sentinel(sentinel_wrapper<int*>{})), std::move_sentinel<sentinel_wrapper<int*>>>);