Open Bug 1484405 Opened 7 years ago Updated 3 years ago

FunctionTypeTraits.h could provide helpers for common patterns

Categories

(Core :: MFBT, enhancement)

enhancement

Tracking

()

Tracking Status
firefox63 --- affected

People

(Reporter: mozbugz, Unassigned)

References

Details

Based on the first uses of FunctionTypeTraits in bug 1482046 and https://phabricator.services.mozilla.com/D3684, it may be worth adding helper traits/macros for common uses, e.g.: - Does this function return `R`? - Does this function take exact arguments `As...`? Or convertible from `As...`? - Does this function have the signature `R(As...)`? - Does this object have a method named 'X'? With a specific R/As.../R(As...) and/or constness? - Others?...
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.