Skip to content

Instantly share code, notes, and snippets.

@zedtux
Created January 12, 2014 17:23
Show Gist options
  • Select an option

  • Save zedtux/8387676 to your computer and use it in GitHub Desktop.

Select an option

Save zedtux/8387676 to your computer and use it in GitHub Desktop.
C++: Les fonctions “inline”
class A
{
private:
int size;
int height;
int width;
public:
A();
~A();
void setSize( int size );
void setHeight( int height );
void setWidth( int with );
inline getSize() const
{
return this->size;
}
inline getHeight() const
{
return this->height;
}
inline getWidth() const
{
return this->width;
}
};
@zedtux

zedtux commented Jan 12, 2014

Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment