1 // { dg-do compile { target c++26 } }
4 #include <forward_list>
9 #if !defined(__cpp_lib_algorithm_default_value_type)
10 #error "Feature test macro for default template type for algorithms' values is missing"
11 #elif __cpp_lib_algorithm_default_value_type < 202403L
12 #error "Feature test macro for default template type for algorithms' values is wrong"
17 friend auto operator<=>(const S
&, const S
&) = default;
20 template<template<typename
...> typename Container
>
24 std::erase(c
, {1, 3.14});
30 test_erase
<std::deque
>();
31 test_erase
<std::forward_list
>();
32 test_erase
<std::list
>();
33 test_erase
<std::vector
>();
39 std::erase(ws
, {L
'x'});