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 //===----------------------------------------------------------------------===//
12 // forward_list::iterator()
13 // forward_list::const_iterator()
15 #include <forward_list>
18 #include "test_macros.h"
19 #include "min_allocator.h"
22 std::forward_list
<A
> d
;
23 std::forward_list
<A
>::iterator it
;
24 std::forward_list
<A
>::const_iterator it2
;
27 #if TEST_STD_VER >= 11
29 typedef std::forward_list
<B
, min_allocator
<B
>> FList
;
32 FList::const_iterator it2
;
42 a
.it2
= a
.d
.cbefore_begin();
44 #if TEST_STD_VER >= 11
49 b
.it2
= b
.d
.cbefore_begin();