This is an archive of the discontinued LLVM Phabricator instance.

STLExtras: Provide less/equal functors with templated function call operators, plus a deref'ing functor template utility
ClosedPublic

Authored by dblaikie on Feb 1 2015, 3:57 PM.

Details

Summary

Similar to the C++14 void specializations of these templates, useful as a stop-gap until LLVM switches to '14.

Example use-cases in tblgen because I saw some functors that looked like they could be simplified/refactored.

Diff Detail

Repository
rL LLVM

Event Timeline

dblaikie updated this revision to Diff 19119.Feb 1 2015, 3:57 PM
dblaikie retitled this revision from to STLExtras: Provide less/equal functors with templated function call operators, plus a deref'ing functor template utility.
dblaikie added reviewers: chandlerc, dexonsmith.
dblaikie updated this object.
dblaikie added a subscriber: Unknown Object (MLST).
dblaikie updated this revision to Diff 19120.Feb 1 2015, 4:01 PM

Formatting and comments

dblaikie updated this revision to Diff 19122.Feb 1 2015, 5:40 PM

Add asserts to the deref binary functor.

This revision was automatically updated to reflect the committed changes.