mongolia has fallen
prettydarknwild
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
im doing it to practice, if i was going to use it for a project, i would use the STL one
rust giveth, and rust taketh away