linksplatform / Ranges

LinksPlatform's Platform.Ranges Class Library
https://linksplatform.github.io/Ranges
The Unlicense
4 stars 1 forks source link

Add specialization for std::equal_to here to have solid example of equivalent of Equals method from C# #74

Closed Konard closed 2 years ago

Konard commented 2 years ago

A place where equal_to specialization should be placed:

https://github.com/linksplatform/Ranges/blob/8b5062f6b1f90695afeaca650d86ab4b58ebf25a/cpp/Platform.Ranges/Range%5BT%5D.h#L77-L89

Example of std::equal_to specialization:

https://github.com/linksplatform/Equality/blob/0ba62efa22e385ed7cd3448ffb74a2a62ced0ddb/cpp/Platform.Equality/Platform.Equality.Range.h#L7-L18

uselessgoddess commented 2 years ago

Specialization is not needed. std::equal_to require operator==()