MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / emplace

Method emplace

dependencies/json/json.hpp:16502–16513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16500 : Container{init, alloc} {}
16501
16502 std::pair<iterator, bool> emplace(const key_type& key, T&& t)
16503 {
16504 for (auto it = this->begin(); it != this->end(); ++it)
16505 {
16506 if (it->first == key)
16507 {
16508 return {it, false};
16509 }
16510 }
16511 Container::emplace_back(key, t);
16512 return {--this->end(), true};
16513 }
16514
16515 T& operator[](const Key& key)
16516 {

Callers 13

Load_Device_ConfigMethod · 0.45
getWirelessDeviceFunction · 0.45
initialiseDeviceMethod · 0.45
getDeviceFeatureListMethod · 0.45
getRGBconfigMethod · 0.45
DetectLogitechWiredFunction · 0.45
BundleLogitechUsagesFunction · 0.45
DetectLogitechWirelessFunction · 0.45
i2c_smbus_i801_detectFunction · 0.45
queryMethod · 0.45
from_jsonFunction · 0.45
basic_jsonFunction · 0.45

Calls 3

emplace_backFunction · 0.70
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected