Closed Bug 1482046 Opened Last year Closed Last year

Add FunctionTypeTraits in mfbt

Categories

(Core :: MFBT, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: gerald, Assigned: gerald)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

It would be useful to have a `FunctionTypeTraits` template that helps with extracting arity, return and parameter types from function types, to help write static_assert's and other templated code that can depends on precise function traits.
raptor linux tests are currently run on AWS VM images, these should be run on raw hardware
Attachment #8998770 - Attachment is obsolete: true
FunctionTypeTraits< function type > makes it easier to kwow a function's
return type, arity, and parameter types.
It works with free functions, struct/class methods, function objects like
non-generic lambdas and std::function.
Comment on attachment 8998776 [details]
Bug 1482046 - mfbt: FunctionTypeTraits - r?froydnj

Nathan Froyd [:froydnj] has approved the revision.
Attachment #8998776 - Flags: review+
https://hg.mozilla.org/mozilla-central/rev/85f7b7200eea
Status: NEW → RESOLVED
Closed: Last year
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Blocks: 1484405
You need to log in before you can comment on or make changes to this bug.