MCPcopy Create free account
hub / github.com/boostorg/parser / value

Class value

example/json.hpp:200–413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198 }
199
200 struct value
201 {
202 value() = default;
203
204 value(value const & other) { copy_impl(other); }
205
206 value(value && other) { move_impl(std::move(other)); }
207
208 value & operator=(value const & other)
209 {
210 storage_ = storage();
211 copy_impl(other);
212 return *this;
213 }
214
215 value & operator=(value && other)
216 {
217 storage_ = storage();
218 move_impl(std::move(other));
219 return *this;
220 }
221
222 template<typename JSONObject>
223 value(
224 JSONObject const & o,
225 typename std::enable_if<detail::is_object<JSONObject>::value>::
226 type ** enable = nullptr);
227
228 value(object && o);
229
230 template<typename JSONArray>
231 value(
232 JSONArray const & a,
233 typename std::enable_if<detail::is_array<JSONArray>::value>::type **
234 enable = nullptr);
235
236 value(array && a);
237
238 value(double d);
239
240 template<typename String>
241 value(
242 String const & str,
243 typename std::enable_if<detail::is_string<String>::value>::type **
244 enable = nullptr);
245 value(std::string && str);
246 value(std::string_view str);
247
248 value(bool b);
249
250 value(null_t);
251
252 template<typename JSONObject>
253 typename std::enable_if<detail::is_object<JSONObject>::value, value &>::
254 type
255 operator=(JSONObject const & o);
256
257 value & operator=(object && o);

Callers 3

operator=Method · 0.70
json.hppFile · 0.70
json.cppFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected