//===----------------------------------------------------------------------===// // // 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 // SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. // //===----------------------------------------------------------------------===// #ifndef LIBCXX_TEST_SUPPORT_TEST_RANGE_H #define LIBCXX_TEST_SUPPORT_TEST_RANGE_H #include #include #include "test_iterators.h" struct sentinel { template , int> = 0> TEST_FUNC friend bool operator==(sentinel const&, I const&) { return true; } template , int> = 0> TEST_FUNC friend bool operator==(I const&, sentinel const&) { return true; } template , int> = 0> TEST_FUNC friend bool operator!=(sentinel const&, I const&) { return false; } template , int> = 0> TEST_FUNC friend bool operator!=(I const&, sentinel const&) { return false; } }; template