static function

What is the effect if i declare a function as static? I know the effect of static together with variables but what's the meaning if i use it with a function?

Example:
1
2
3
4
static void drawLeftTriangle(void)
{
	// [...]
}
static functions declared within the scope of a class are non-member functions that have the same access
rights as if they were members. That is, the only difference between a static method and a member function
is member functions have a "this" pointer whereas static methods do not.

static functions declared at file scope are only visible within the .cpp file in which they are declared.
Topic archived. No new replies allowed.