5
5
6
6
module ;
7
7
8
- #include < bounded/assert.hpp>
9
-
10
8
#include < operators/forward.hpp>
11
9
12
10
export module containers.lazy_push_front;
13
11
14
12
import containers.algorithms.splice;
15
13
import containers.begin_end;
16
- import containers.bidirectional_linked_list;
17
- import containers.forward_linked_list;
18
14
import containers.front;
19
15
import containers.lazy_push_back;
20
16
import containers.range_value_t ;
21
17
import containers.splicable;
22
18
import containers.supports_lazy_insert_after;
23
19
24
20
import bounded;
25
- import bounded.test_int;
26
- import std_module;
27
21
28
22
namespace containers {
29
23
@@ -49,27 +43,3 @@ constexpr auto lazy_push_front(
49
43
}
50
44
51
45
} // namespace containers
52
-
53
- using namespace bounded ::literal;
54
-
55
- template <typename Container>
56
- constexpr auto test_lazy_push_front () -> bool {
57
- auto c = Container ();
58
-
59
- containers::lazy_push_front (c, bounded::value_to_function (3 ));
60
- BOUNDED_ASSERT (c == Container ({3 }));
61
-
62
- containers::lazy_push_front (c, bounded::value_to_function (4 ));
63
- BOUNDED_ASSERT (c == Container ({4 , 3 }));
64
-
65
- containers::lazy_push_front (c, bounded::value_to_function (5 ));
66
- BOUNDED_ASSERT (c == Container ({5 , 4 , 3 }));
67
-
68
- containers::lazy_push_front (c, bounded::value_to_function (12 ));
69
- BOUNDED_ASSERT (c == Container ({12 , 5 , 4 , 3 }));
70
-
71
- return true ;
72
- }
73
-
74
- static_assert (test_lazy_push_front<containers::bidirectional_linked_list<bounded_test::non_copyable_integer>>());
75
- static_assert (test_lazy_push_front<containers::forward_linked_list<bounded_test::non_copyable_integer>>());
0 commit comments