File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ namespace llvm {
44
44
using const_iterator = const T *;
45
45
using size_type = size_t ;
46
46
using reverse_iterator = std::reverse_iterator<iterator>;
47
+ using value_type = typename std::remove_cv<T>::type;
47
48
48
49
private:
49
50
// / The start of the array, in an external buffer.
Original file line number Diff line number Diff line change @@ -51,6 +51,14 @@ static_assert(
51
51
" Assigning from an initializer list" );
52
52
#endif
53
53
54
+ // Check Typedefs.
55
+ static_assert (
56
+ std::is_same<ArrayRef<int >::value_type, int >::value,
57
+ " erroneous value_type" );
58
+ static_assert (
59
+ std::is_same<ArrayRef<const int >::value_type, int >::value,
60
+ " erroneous value_type" );
61
+
54
62
namespace {
55
63
56
64
TEST (ArrayRefTest, AllocatorCopy) {
You can’t perform that action at this time.
0 commit comments