@@ -126,9 +126,7 @@ template<typename CharType> struct data_variant
126126 // cppcheck-suppress noExplicitConstructor
127127 constexpr data_variant (std::basic_string_view<CharType> s) : value{ s }, selected{ selected_type::string } {}
128128
129- [[nodiscard]] constexpr bool is_boolean () const noexcept {
130- return selected == selected_type::boolean;
131- }
129+ [[nodiscard]] constexpr bool is_boolean () const noexcept { return selected == selected_type::boolean; }
132130
133131 [[nodiscard]] constexpr const bool *get_if_boolean () const noexcept
134132 {
@@ -139,9 +137,7 @@ template<typename CharType> struct data_variant
139137 }
140138 }
141139
142- [[nodiscard]] constexpr bool is_array () const noexcept {
143- return selected == selected_type::array;
144- }
140+ [[nodiscard]] constexpr bool is_array () const noexcept { return selected == selected_type::array; }
145141
146142 [[nodiscard]] constexpr const basic_array_t <CharType> *get_if_array () const noexcept
147143 {
@@ -152,9 +148,7 @@ template<typename CharType> struct data_variant
152148 }
153149 }
154150
155- [[nodiscard]] constexpr bool is_object () const noexcept {
156- return selected == selected_type::object;
157- }
151+ [[nodiscard]] constexpr bool is_object () const noexcept { return selected == selected_type::object; }
158152
159153 [[nodiscard]] constexpr const basic_object_t <CharType> *get_if_object () const noexcept
160154 {
@@ -165,9 +159,7 @@ template<typename CharType> struct data_variant
165159 }
166160 }
167161
168- [[nodiscard]] constexpr bool is_integer () const noexcept {
169- return selected == selected_type::integer;
170- }
162+ [[nodiscard]] constexpr bool is_integer () const noexcept { return selected == selected_type::integer; }
171163
172164 [[nodiscard]] constexpr const std::int64_t *get_if_integer () const noexcept
173165 {
@@ -178,9 +170,7 @@ template<typename CharType> struct data_variant
178170 }
179171 }
180172
181- [[nodiscard]] constexpr bool is_uinteger () const noexcept {
182- return selected == selected_type::uinteger;
183- }
173+ [[nodiscard]] constexpr bool is_uinteger () const noexcept { return selected == selected_type::uinteger; }
184174
185175 [[nodiscard]] constexpr const std::uint64_t *get_if_uinteger () const noexcept
186176 {
@@ -192,9 +182,7 @@ template<typename CharType> struct data_variant
192182 }
193183
194184
195- [[nodiscard]] constexpr bool is_floating_point () const noexcept {
196- return selected == selected_type::floating_point;
197- }
185+ [[nodiscard]] constexpr bool is_floating_point () const noexcept { return selected == selected_type::floating_point; }
198186
199187
200188 [[nodiscard]] constexpr const double *get_if_floating_point () const noexcept
@@ -206,9 +194,7 @@ template<typename CharType> struct data_variant
206194 }
207195 }
208196
209- [[nodiscard]] constexpr bool is_string () const noexcept {
210- return selected == selected_type::string;
211- }
197+ [[nodiscard]] constexpr bool is_string () const noexcept { return selected == selected_type::string; }
212198
213199 [[nodiscard]] constexpr const std::basic_string_view<CharType> *get_if_string () const noexcept
214200 {
0 commit comments