Contents

CFBagContainsValue(_:_:)

Reports whether or not a value is in a bag.

Declaration

func CFBagContainsValue(_ theBag: CFBag!, _ value: UnsafeRawPointer!) -> Bool

Parameters

  • theBag:

    The bag to examine.

  • value:

    The value to match in theBag. The equal callback provided when theBag was created is used to compare. If the equal callback was NULL, pointer equality (in C, ==) is used. If value, or any other value in theBag, is not understood by the equal callback, the behavior is undefined.

Return Value

true if value is contained in theBag, otherwise false.

See Also

Examining a Bag