MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / AddUniqueElement

Method AddUniqueElement

Source/ThirdParty/rapidjson/schema.h:1358–1364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1356
1357 template <typename V1, typename V2>
1358 void AddUniqueElement(V1& a, const V2& v) {
1359 for (typename V1::ConstValueIterator itr = a.Begin(); itr != a.End(); ++itr)
1360 if (*itr == v)
1361 return;
1362 V1 c(v, *allocator_);
1363 a.PushBack(c, *allocator_);
1364 }
1365
1366 static const ValueType* GetMember(const ValueType& value, const ValueType& name) {
1367 typename ValueType::ConstMemberIterator itr = value.FindMember(name);

Callers

nothing calls this directly

Calls 3

BeginMethod · 0.45
EndMethod · 0.45
PushBackMethod · 0.45

Tested by

no test coverage detected