Generalized symmetric spaces