rust giveth, and rust taketh away
prettydarknwild
mongolia has fallen
Maduro will not be Venezuela's president again, unless he rigs the shit out of those elections, or uses the military to orchestrate a coup
so now the danish govt can sue them due to false advertising?
crowdstrike doing just a little of tomfoolery
source:
dont worry, i have one more question, i should initialize variables with = or with {}?
i used tthe tester class with my code removing the .deallocate(), and although it doesnt crash, it still runs the destructor multiple times on the same element, i think its because im just pushing i into the container, and because that constructor creates an implicit conversion between int and ContainerTester, it creates a temporary object that gets destroyed once it is pushed into the deque, am i right?
so, that practice of calling .destroy() and then .deallocate() is redundant and error-prone
that makes sense, although is kinda weird because i also did a string implementation before doing the same thing and it worked, also the c++ reference and the book that im using to learn c++ says that .destroy() only destroys the object it doesnt deallocate
even better, top/bottom