Porosity formed by the preferential dissolution of a former constituent of sedimentary rock. Once the constituent (such as a shell, other detrital material, or oölith) has dissolved, a void or empty mold remains which bears the shape of the former material.