Quantum resource theory for charge-parity-time inversion