Revert "[libc] Use best-fit binary trie to make malloc logarithmic" (#117065)
[llvm-project.git] / libcxx / test / std / ranges / range.factories / range.single.view / ctad.compile.pass.cpp
blobc9d33c1156ed3e70d66abbb5ce8bd5e21226b13f
1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 // UNSUPPORTED: c++03, c++11, c++14, c++17
11 // template<class T>
12 // single_view(T) -> single_view<T>;
14 #include <ranges>
16 #include <cassert>
17 #include <concepts>
19 #include "test_iterators.h"
21 struct Empty {};
23 static_assert(std::same_as<
24 decltype(std::ranges::single_view(Empty())),
25 std::ranges::single_view<Empty>
26 >);
28 static_assert(std::same_as<
29 decltype(std::ranges::single_view(std::declval<Empty&>())),
30 std::ranges::single_view<Empty>
31 >);
33 static_assert(std::same_as<
34 decltype(std::ranges::single_view(std::declval<Empty&&>())),
35 std::ranges::single_view<Empty>
36 >);