derived() for vector classes