MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / key_to_string

Function key_to_string

src/ifcparse/rocksdb_map_adapter.h:107–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105
106template <typename KeyT>
107std::string key_to_string(const KeyT& key) {
108 if constexpr (std::is_same_v<KeyT, std::string>) {
109 return key;
110 } else {
111 return std::to_string(key);
112 }
113}
114
115// Convert from a string to a key. For non-string types, we assume numeric keys.
116template <typename KeyT, typename std::enable_if<!is_std_tuple<KeyT>::value, int>::type = 0>

Callers 4

findMethod · 0.85
findMethod · 0.85
eraseMethod · 0.85
insertMethod · 0.85

Calls 2

to_stringFunction · 0.85
tuple_to_string_implFunction · 0.85

Tested by

no test coverage detected