Created
February 14, 2022 10:32
-
-
Save oliverepper/2bd84e63deeda1546b0cd1e99b5002a5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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