General Glivenko–Cantelli theorems