For top-level function definitions, the recommended style is:
template<typename T>
static inline T
Foo()
{
// ...
}
However, for function declarations and inline member functions, there
does not seem to be a definitive style. Some use:
int Foo();
class Bar
{
virtual int Baz()
{
// ...
}
};
... and others use:
int
Foo();
class Bar
{
virtual int
Baz()
{
// ...
}
};
Which one should be preferred?
_______________________________________________
dev-platform mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-platform