Member_ptr_functors(3)

Member_ptr_functors3

Detailed Description

There are a total of 8 = 2^3 function objects in this family. (1) Member functions taking no arguments vs member functions taking one argument. (2) Call through pointer vs call through reference. (3) Const vs non-const member function.

All of this complexity is in the function objects themselves. You can ignore it by using the helper function mem_fun and mem_fun_ref, which create whichever type of adaptor is appropriate.

Classes

class const_mem_fun1_ref_t
One of the adaptors for member pointers. class const_mem_fun1_t
One of the adaptors for member pointers. class const_mem_fun_ref_t
One of the adaptors for member pointers. class const_mem_fun_t
One of the adaptors for member pointers. class mem_fun1_ref_t
One of the adaptors for member pointers. class mem_fun1_t
One of the adaptors for member pointers. class mem_fun_ref_t
One of the adaptors for member pointers. class mem_fun_t
One of the adaptors for member pointers.

Functions

template<class _Ret, class _Tp, class _Arg> mem_fun1_t< _Ret, _Tp, _Arg > mem_fun (_Ret(_Tp::*__f)(_Arg))
template<class _Ret, class _Tp> mem_fun_t< _Ret, _Tp > mem_fun (_Ret(_Tp::*__f)())
template<class _Ret, class _Tp, class _Arg> mem_fun1_ref_t< _Ret, _Tp, _Arg > mem_fun_ref (_Ret(_Tp::*__f)(_Arg))
template<class _Ret, class _Tp> mem_fun_ref_t< _Ret, _Tp > mem_fun_ref (_Ret(_Tp::*__f)())

Releases

3 releases since Debian 3.1 (Sarge); the text changed 2 times.

  1. 3.1
  2. 4.0
  3. 5.0

From libstdc++6-4.1-doc 4.1.2-25 in Debian 5.0 (Lenny). Also shipped by libstdc++6-4.2-doc, libstdc++6-4.3-doc. Parsed by carta from the page's man source.