The author initially planned to use the placement `new` operator and the `::new` operator in their C++ container implementation.They encountered an error when using types with deleted default constructors.They learned about the placement `new` operator and how it can be useful for uninitialized memory.They discovered the need to use `::operator new` and `::operator delete` for aligned types like `std::shared_ptr`.