def METHOD_NAME(self):
    minimal_cpp_standard = "17"
    if self.settings.get_safe("compiler.cppstd"):
        check_min_cppstd(self, minimal_cpp_standard)
    minimal_version = {
        "gcc": "10",
        "clang": "11",
        "apple-clang": "12",
    }
    check_min_vs(self, 192)
    if not is_msvc(self):
        minimum_version = minimal_version.get(str(self.settings.compiler), False)
        if minimum_version and Version(self.settings.compiler.version) < minimum_version:
            raise ConanInvalidConfiguration(
                f"{self.ref} requires minimum {self.settings.compiler}-{minimum_version}."
            )