1 //===----------------------------------------------------------------------===//
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
7 //===----------------------------------------------------------------------===//
9 // UNSUPPORTED: c++03, c++11, c++14, c++17, c++20
11 // template<container-compatible-range<T> R>
12 // list(from_range_t, R&& rg, const Allocator& = Allocator()); // C++23
16 #include "../../from_range_sequence_containers.h"
17 #include "test_macros.h"
19 int main(int, char**) {
20 for_all_iterators_and_allocators
<int>([]<class Iter
, class Sent
, class Alloc
>() {
21 test_sequence_container
<std::list
, int, Iter
, Sent
, Alloc
>([](const auto&) {
22 // No additional validation to do.
25 test_sequence_container_move_only
<std::list
>();
27 static_assert(test_constraints
<std::list
, int, double>());
29 test_exception_safety_throwing_copy
<std::list
>();
30 test_exception_safety_throwing_allocator
<std::list
, int>();