```{index} single: is_class_loaded (Class::Load::XS) ``` ```{index} single: Class::Load::XS::is_class_loaded ``` # is_class_loaded Whether a package is loaded: it has a `$VERSION`, a non-empty `@ISA` or a sub; with `{ -version => $v }`, whether `$class->VERSION($v)` succeeds. ## Synopsis ```perl Class::Load::XS::is_class_loaded('Foo'); # true or false Class::Load::XS::is_class_loaded('Foo', { -version => 2 }); # Foo 2 or later, loaded ``` ## Edge cases - An empty or non-string class name is not loaded. - A second argument that is not a hash reference dies "Class::Load::XS::is_class_loaded: options is not a HASH reference".