Top "Member-functions" questions

A function declared and/or defined within a class.

Non-member vs member functions in Python

I'm relatively new to Python and struggling to reconcile features of the language with habits I've picked up from my …

python encapsulation member-functions non-member-functions
std::mem_fun vs std::mem_fn

What is the difference between std::mem_fun and std::mem_fn? Why is the naming so confusing? Boost's documentation …

c++ c++11 std member-functions
Why is calling a static member function with . or -> syntax legal?

Possible Duplicate: C++ Static member method call on class instance Today I discovered that something I had long (and I …

c++ static member-functions
callback from c++ to objective c

I have ViewController in objective-c and most of my code is c++ (.mm). I'd like to setup some callbacks to …

c++ objective-c callback member-functions
Is there a way to call multiple functions on the same object with one line?

Just trying to tidy up a program and was wondering if anyone could feed me some syntax sugar with regard …

c++ method-chaining syntactic-sugar function-calls member-functions
Multiplying an object with a constant from left side

I have a Matrix class and it has overloaded * operators for scalar and matrix multiplications. template <class T> …

c++ templates operator-overloading member-functions non-member-functions
Member function call in decltype

The following code: struct A { int f(int); auto g(int x) -> decltype(f(x)); }; Fails to compile …

c++ c++11 decltype member-functions
Pass Member Function as Parameter to other Member Function (C++ 11 <function>)

Let's say that I have a class with three member functions, as follows: #include <iostream> #include <functional&…

c++ function c++11 std-function member-functions