Plugging laptop, Desktop PC, Iphone etc in reverse due to 2 plug pins with same size

If you have a 2 pin laptop charger and a 2 pin wall outlet and plug in your laptop into the charger and the charger into the outlet upside down due to the 2 pins on the plug having the same dimensions which means the positive pin on the charger goes into the negative slot and the negative into the positive slot on the outlet. When this happens does the laptop, PC phone etc receive power in reverse or does the charger brick/ Power Supply flip and polarize the current the right way so positive flows to positive and negative to negative? Are there switches on both positive and negative cables on the motherboard so when you turn off your computer the switch cuts both positive and negative terminals on the board?