You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Instantly share code, notes, and snippets.
Marijan Petričević
marijanp
Haskell, Rust, Nix/NixOS, (C++) • informatics at Karlsruhe Institute of Technology (KIT)
int facory_function(Type *t);
int main (int argc, char *argv[]) {
const std::unique_ptr<Type> t_ptr{ [] {
Type *t = nullptr;
if (factory_function(t)) {
return t;
}