Skip to content

Instantly share code, notes, and snippets.

@oliverepper
Created February 14, 2022 10:32
Show Gist options
  • Save oliverepper/2bd84e63deeda1546b0cd1e99b5002a5 to your computer and use it in GitHub Desktop.
Save oliverepper/2bd84e63deeda1546b0cd1e99b5002a5 to your computer and use it in GitHub Desktop.
void draw(const my_class_t&, ostream& out, size_t position)
{
out << string (position, ' ') << "my_class_t" << endl;
}
int main() {
document_t document;
document.reserve(5);
document.emplace_back(my_class_t());
document.emplace_back(1);
document.emplace_back("Zwei");
document.emplace_back(document);
reverse(document.begin(), document.end());
draw(document, cout, 0);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment