Skip to content

Instantly share code, notes, and snippets.

@mrmarkwell
mrmarkwell / mattbot.png
Last active April 23, 2026 01:20
Jake the dogbot
foo
@mrmarkwell
mrmarkwell / move_copy_experiments.cpp
Created January 20, 2021 23:43
[GODBOLT] Experimenting with C++ copy and move. Specifically, with how to return an object on the stack when it is heap-allocated and held by a unique_ptr.
#include <algorithm>
#include <array>
#include <iostream>
#include <iterator>
#include <limits>
#include <numeric>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>