Function ValueContainer.has

Check if an object is present in Locator by identity.

inout bool has (
  const(string) identity
);

Note

This check should be done for elements that locator actually contains, and not in chained locator.

Parameters

NameDescription
identity identity of element.

Returns

bool true if an element by key is present in Locator.