File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -28,28 +28,29 @@ template <typename Iter> class reverse_iterator {
28
28
public:
29
29
using reference = typename iterator_traits<Iter>::reference;
30
30
31
- reverse_iterator () : current() {}
32
- constexpr explicit reverse_iterator (Iter it) : current(it) {}
31
+ LIBC_INLINE reverse_iterator () : current() {}
32
+ LIBC_INLINE constexpr explicit reverse_iterator (Iter it) : current(it) {}
33
33
34
34
template <typename Other,
35
35
cpp::enable_if_t <!cpp::is_same_v<Iter, Other> &&
36
36
cpp::is_convertible_v<const Other &, Iter>,
37
37
int > = 0 >
38
- constexpr explicit reverse_iterator (const Other &it) : current(it) {}
38
+ LIBC_INLINE constexpr explicit reverse_iterator (const Other &it)
39
+ : current(it) {}
39
40
40
- constexpr reference operator *() const {
41
+ LIBC_INLINE constexpr reference operator *() const {
41
42
Iter tmp = current;
42
43
return *--tmp;
43
44
}
44
- constexpr reverse_iterator operator --() {
45
+ LIBC_INLINE constexpr reverse_iterator operator --() {
45
46
++current;
46
47
return *this ;
47
48
}
48
- constexpr reverse_iterator &operator ++() {
49
+ LIBC_INLINE constexpr reverse_iterator &operator ++() {
49
50
--current;
50
51
return *this ;
51
52
}
52
- constexpr reverse_iterator operator ++(int ) {
53
+ LIBC_INLINE constexpr reverse_iterator operator ++(int ) {
53
54
reverse_iterator tmp (*this );
54
55
--current;
55
56
return tmp;
You can’t perform that action at this time.
0 commit comments