Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add conditional conformances of CircularBuffer to Equatable and Hashable #1101

Merged
merged 1 commit into from Aug 11, 2019

Commits on Aug 10, 2019

  1. Add conditional conformances of CircularBuffer to Equatable and Hashable

    Motivation:
    In general, Swift collections and sequences automatically conforms to
    Equatable and Hashable when their Element conforms to Equatable and
    Hashhable, respectively. This wasn't the case of CircularBuffer, which
    was unintuitive and could cause useless boilerplate code.
    
    Modifications:
    CircularBuffer has been extended so that it conforms to Equatable when
    its Element is Equatable, and to Hashable when its element is Hashable.
    Corresponding test cases have been added.
    
    Result:
    Appropriate conditional conformances of CircularBuffer to Equatable and
    Hashable
    PopFlamingo committed Aug 10, 2019
    Configuration menu
    Copy the full SHA
    92a0701 View commit details
    Browse the repository at this point in the history