Code Grandfathering

Looking for info about grandfathering electrical items such as GFCI, smoke detectors and CO detectors. I work in Maryland.

Any help with be appreciated.