Skip to content

Commit ff8dc8f

Browse files
replace gnu::const to gnu::pure
1 parent 2b639d5 commit ff8dc8f

File tree

5 files changed

+28
-28
lines changed

5 files changed

+28
-28
lines changed

include/fast_io_dsal/impl/list.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -605,16 +605,16 @@ class list
605605
return const_reverse_iterator({__builtin_addressof(imp)});
606606
}
607607

608-
#if __has_cpp_attribute(__gnu__::__const__)
609-
[[__gnu__::__const__]]
608+
#if __has_cpp_attribute(__gnu__::__pure__)
609+
[[__gnu__::__pure__]]
610610
#endif
611611
[[nodiscard]] inline constexpr bool empty() const noexcept
612612
{
613613
return imp.next == __builtin_addressof(imp);
614614
}
615615

616-
#if __has_cpp_attribute(__gnu__::__const__)
617-
[[__gnu__::__const__]]
616+
#if __has_cpp_attribute(__gnu__::__pure__)
617+
[[__gnu__::__pure__]]
618618
#endif
619619
[[nodiscard]] inline constexpr bool is_empty() const noexcept
620620
{

include/fast_io_dsal/impl/queue.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ class queue
6969
return container.back_unchecked();
7070
}
7171

72-
#if __has_cpp_attribute(__gnu__::__const__)
73-
[[__gnu__::__const__]]
72+
#if __has_cpp_attribute(__gnu__::__pure__)
73+
[[__gnu__::__pure__]]
7474
#endif
7575
[[nodiscard]]
7676
inline constexpr bool empty() const noexcept
@@ -87,17 +87,17 @@ class queue
8787
}
8888
}
8989

90-
#if __has_cpp_attribute(__gnu__::__const__)
91-
[[__gnu__::__const__]]
90+
#if __has_cpp_attribute(__gnu__::__pure__)
91+
[[__gnu__::__pure__]]
9292
#endif
9393
[[nodiscard]]
9494
inline constexpr bool is_empty() const noexcept
9595
{
9696
return container.is_empty();
9797
}
9898

99-
#if __has_cpp_attribute(__gnu__::__const__)
100-
[[__gnu__::__const__]]
99+
#if __has_cpp_attribute(__gnu__::__pure__)
100+
[[__gnu__::__pure__]]
101101
#endif
102102
[[nodiscard]]
103103
inline constexpr size_type size() const noexcept

include/fast_io_dsal/impl/stack.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ class stack
8787
}
8888
}
8989

90-
#if __has_cpp_attribute(__gnu__::__const__)
91-
[[__gnu__::__const__]]
90+
#if __has_cpp_attribute(__gnu__::__pure__)
91+
[[__gnu__::__pure__]]
9292
#endif
9393
[[nodiscard]]
9494
inline constexpr bool empty() const noexcept
@@ -105,17 +105,17 @@ class stack
105105
}
106106
}
107107

108-
#if __has_cpp_attribute(__gnu__::__const__)
109-
[[__gnu__::__const__]]
108+
#if __has_cpp_attribute(__gnu__::__pure__)
109+
[[__gnu__::__pure__]]
110110
#endif
111111
[[nodiscard]]
112112
inline constexpr bool is_empty() const noexcept
113113
{
114114
return container.is_empty();
115115
}
116116

117-
#if __has_cpp_attribute(__gnu__::__const__)
118-
[[__gnu__::__const__]]
117+
#if __has_cpp_attribute(__gnu__::__pure__)
118+
[[__gnu__::__pure__]]
119119
#endif
120120
[[nodiscard]]
121121
inline constexpr size_type size() const noexcept

include/fast_io_dsal/impl/string.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -218,26 +218,26 @@ class basic_string FAST_IO_TRIVIALLY_RELOCATABLE_IF_ELIGIBLE
218218
return imp.begin_ptr;
219219
}
220220

221-
#if __has_cpp_attribute(__gnu__::__const__)
222-
[[__gnu__::__const__]]
221+
#if __has_cpp_attribute(__gnu__::__pure__)
222+
[[__gnu__::__pure__]]
223223
#endif
224224
[[nodiscard]]
225225
inline constexpr bool is_empty() const noexcept
226226
{
227227
return imp.begin_ptr == imp.curr_ptr;
228228
}
229229

230-
#if __has_cpp_attribute(__gnu__::__const__)
231-
[[__gnu__::__const__]]
230+
#if __has_cpp_attribute(__gnu__::__pure__)
231+
[[__gnu__::__pure__]]
232232
#endif
233233
[[nodiscard]]
234234
inline constexpr bool empty() const noexcept
235235
{
236236
return imp.begin_ptr == imp.curr_ptr;
237237
}
238238

239-
#if __has_cpp_attribute(__gnu__::__const__)
240-
[[__gnu__::__const__]]
239+
#if __has_cpp_attribute(__gnu__::__pure__)
240+
[[__gnu__::__pure__]]
241241
#endif
242242
[[nodiscard]]
243243
inline constexpr size_type size() const noexcept

include/fast_io_dsal/impl/string_view.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,24 +66,24 @@ class basic_string_view
6666
const_pointer ptr{};
6767
size_type n{};
6868

69-
#if __has_cpp_attribute(__gnu__::__const__)
70-
[[__gnu__::__const__]]
69+
#if __has_cpp_attribute(__gnu__::__pure__)
70+
[[__gnu__::__pure__]]
7171
#endif
7272
[[nodiscard]] inline constexpr bool is_empty() const noexcept
7373
{
7474
return !n;
7575
}
7676

77-
#if __has_cpp_attribute(__gnu__::__const__)
78-
[[__gnu__::__const__]]
77+
#if __has_cpp_attribute(__gnu__::__pure__)
78+
[[__gnu__::__pure__]]
7979
#endif
8080
[[nodiscard]] inline constexpr bool empty() const noexcept
8181
{
8282
return !n;
8383
}
8484

85-
#if __has_cpp_attribute(__gnu__::__const__)
86-
[[__gnu__::__const__]]
85+
#if __has_cpp_attribute(__gnu__::__pure__)
86+
[[__gnu__::__pure__]]
8787
#endif
8888
[[nodiscard]] inline constexpr size_type size() const noexcept
8989
{

0 commit comments

Comments
 (0)