@@ -172,7 +172,7 @@ Value& Value::operator=(Value&& rhs)
172
172
return *this ;
173
173
}
174
174
175
- Value:: Type Value::type () const
175
+ Type Value::type () const
176
176
{
177
177
return _type;
178
178
}
@@ -226,7 +226,7 @@ void Value::emplace_back(std::string&& name, Value&& value)
226
226
_map->emplace_back (std::make_pair (std::move (name), std::move (value)));
227
227
}
228
228
229
- Value:: MapType::const_iterator Value::find (const std::string& name) const
229
+ MapType::const_iterator Value::find (const std::string& name) const
230
230
{
231
231
if (_type != Type::Map)
232
232
{
@@ -276,7 +276,7 @@ const Value& Value::operator[](size_t index) const
276
276
}
277
277
278
278
template <>
279
- void Value::set<Value:: StringType>(StringType&& value)
279
+ void Value::set<StringType>(StringType&& value)
280
280
{
281
281
if (_type != Type::String
282
282
&& _type != Type::EnumValue)
@@ -288,7 +288,7 @@ void Value::set<Value::StringType>(StringType&& value)
288
288
}
289
289
290
290
template <>
291
- void Value::set<Value:: BooleanType>(BooleanType&& value)
291
+ void Value::set<BooleanType>(BooleanType&& value)
292
292
{
293
293
if (_type != Type::Boolean)
294
294
{
@@ -299,7 +299,7 @@ void Value::set<Value::BooleanType>(BooleanType&& value)
299
299
}
300
300
301
301
template <>
302
- void Value::set<Value:: IntType>(IntType&& value)
302
+ void Value::set<IntType>(IntType&& value)
303
303
{
304
304
if (_type != Type::Int)
305
305
{
@@ -310,7 +310,7 @@ void Value::set<Value::IntType>(IntType&& value)
310
310
}
311
311
312
312
template <>
313
- void Value::set<Value:: FloatType>(FloatType&& value)
313
+ void Value::set<FloatType>(FloatType&& value)
314
314
{
315
315
if (_type != Type::Float)
316
316
{
@@ -321,7 +321,7 @@ void Value::set<Value::FloatType>(FloatType&& value)
321
321
}
322
322
323
323
template <>
324
- void Value::set<Value:: ScalarType>(ScalarType&& value)
324
+ void Value::set<ScalarType>(ScalarType&& value)
325
325
{
326
326
if (_type != Type::Scalar)
327
327
{
@@ -332,7 +332,7 @@ void Value::set<Value::ScalarType>(ScalarType&& value)
332
332
}
333
333
334
334
template <>
335
- const Value:: MapType& Value::get<const Value:: MapType&>() const
335
+ const MapType& Value::get<const MapType&>() const
336
336
{
337
337
if (_type != Type::Map)
338
338
{
@@ -343,7 +343,7 @@ const Value::MapType& Value::get<const Value::MapType&>() const
343
343
}
344
344
345
345
template <>
346
- const Value:: ListType& Value::get<const Value:: ListType&>() const
346
+ const ListType& Value::get<const ListType&>() const
347
347
{
348
348
if (_type != Type::List)
349
349
{
@@ -354,7 +354,7 @@ const Value::ListType& Value::get<const Value::ListType&>() const
354
354
}
355
355
356
356
template <>
357
- const Value:: StringType& Value::get<const Value:: StringType&>() const
357
+ const StringType& Value::get<const StringType&>() const
358
358
{
359
359
if (_type != Type::String
360
360
&& _type != Type::EnumValue)
@@ -366,7 +366,7 @@ const Value::StringType& Value::get<const Value::StringType&>() const
366
366
}
367
367
368
368
template <>
369
- Value:: BooleanType Value::get<Value:: BooleanType>() const
369
+ BooleanType Value::get<BooleanType>() const
370
370
{
371
371
if (_type != Type::Boolean)
372
372
{
@@ -377,7 +377,7 @@ Value::BooleanType Value::get<Value::BooleanType>() const
377
377
}
378
378
379
379
template <>
380
- Value:: IntType Value::get<Value:: IntType>() const
380
+ IntType Value::get<IntType>() const
381
381
{
382
382
if (_type != Type::Int)
383
383
{
@@ -388,7 +388,7 @@ Value::IntType Value::get<Value::IntType>() const
388
388
}
389
389
390
390
template <>
391
- Value:: FloatType Value::get<Value:: FloatType>() const
391
+ FloatType Value::get<FloatType>() const
392
392
{
393
393
if (_type != Type::Float)
394
394
{
@@ -399,7 +399,7 @@ Value::FloatType Value::get<Value::FloatType>() const
399
399
}
400
400
401
401
template <>
402
- const Value:: ScalarType& Value::get<const Value:: ScalarType&>() const
402
+ const ScalarType& Value::get<const ScalarType&>() const
403
403
{
404
404
if (_type != Type::Scalar)
405
405
{
@@ -410,7 +410,7 @@ const Value::ScalarType& Value::get<const Value::ScalarType&>() const
410
410
}
411
411
412
412
template <>
413
- Value:: MapType Value::release<Value:: MapType>()
413
+ MapType Value::release<MapType>()
414
414
{
415
415
if (_type != Type::Map)
416
416
{
@@ -425,7 +425,7 @@ Value::MapType Value::release<Value::MapType>()
425
425
}
426
426
427
427
template <>
428
- Value:: ListType Value::release<Value:: ListType>()
428
+ ListType Value::release<ListType>()
429
429
{
430
430
if (_type != Type::List)
431
431
{
@@ -438,7 +438,7 @@ Value::ListType Value::release<Value::ListType>()
438
438
}
439
439
440
440
template <>
441
- Value:: StringType Value::release<Value:: StringType>()
441
+ StringType Value::release<StringType>()
442
442
{
443
443
if (_type != Type::String
444
444
&& _type != Type::EnumValue)
@@ -452,7 +452,7 @@ Value::StringType Value::release<Value::StringType>()
452
452
}
453
453
454
454
template <>
455
- Value:: ScalarType Value::release<Value:: ScalarType>()
455
+ ScalarType Value::release<ScalarType>()
456
456
{
457
457
if (_type != Type::Scalar)
458
458
{
0 commit comments