I
Size: a a a
I
ПК
d
d
void*
лучше не кастовать, это сразу UBP
void*
лучше не кастовать, это сразу UB8) On some implementations (in particular, on any POSIX compatible system as required by dlsym), a function pointer can be converted to void* or any other object pointer, or vice versa. If the implementation supports conversion in both directions, conversion to the original type yields the original value, otherwise the resulting pointer cannot be dereferenced or called safely.но лучше конечно кастить в
void (*)()
какой-нибудьПК
8) On some implementations (in particular, on any POSIX compatible system as required by dlsym), a function pointer can be converted to void* or any other object pointer, or vice versa. If the implementation supports conversion in both directions, conversion to the original type yields the original value, otherwise the resulting pointer cannot be dereferenced or called safely.но лучше конечно кастить в
void (*)()
какой-нибудьm
insert_or_assign
АР
insert_or_assign
АР
m
find
и emplace
с hint.АР
АР
АР
auto& val = m[key];
if (val) {
... // use value
} else {
val.emplace(args...);
... // use value
}
АР
АР
find
и emplace
с hint.АР
A
A