$argon2id$v=19$m=8192,t=2,p=4$bY7PHVWo/cTtCL5vYFyVVg$wL6hc4Z7NZ/Mvg8ajTLVBoKMO/5CSwH8
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
#include <iostream> | |
#include <string> | |
#include <unistd.h> | |
// This program will fill your memory by creating a very large string | |
using std::cout; | |
void print_info(std::string s) | |
{ | |
cout << "Capacity: " << s.capacity() << '\n'; // Let's not use std::endl unless we want a new buffer only for that :) | |
cout << "Size: " << s.size() << '\n'; | |
cout << "Max size: " << s.max_size() << '\n'; |