Closed Bug 1482046 Opened Last year Closed Last year
Type Traits in mfbt
46 bytes, text/x-phabricator-request
|Details | Review|
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
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+
Pushed by firstname.lastname@example.org: https://hg.mozilla.org/integration/autoland/rev/85f7b7200eea mfbt: FunctionTypeTraits - r=froydnj
You need to log in before you can comment on or make changes to this bug.