Normally when we define a member function directly in the class body, it is implicitly inline
. But what about this:
class Foo {
public:
friend void swap(Foo& a, Foo& b) { ... }
...
};
Is the swap
implicitly inline
or not?
Normally when we define a member function directly in the class body, it is implicitly inline
. But what about this:
class Foo {
public:
friend void swap(Foo& a, Foo& b) { ... }
...
};
Is the swap
implicitly inline
or not?