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 //===----------------------------------------------------------------------===//
8 #ifndef LIBCPP_TEST_SUPPORT_READ_WRITE_H
9 #define LIBCPP_TEST_SUPPORT_READ_WRITE_H
10 
11 struct value_type_indirection {
12   using value_type = int;
13   value_type& operator*() const;
14 };
15 
16 struct element_type_indirection {
17   using element_type = long;
18   element_type& operator*() const;
19 };
20 
21 struct proxy_indirection {
22   using value_type = int;
23   value_type operator*() const;
24 };
25 
26 struct read_only_indirection {
27   using value_type = int const;
28   value_type& operator*() const;
29 };
30 
31 // doubles as missing_iter_reference_t
32 struct missing_dereference {
33   using value_type = int;
34 };
35 
36 #endif // LIBCPP_TEST_SUPPORT_READ_WRITE_H
37