---
name: "Member_ptr_functors"
section: "3"
platform: "linux"
package: "libstdc++6-4.1-doc"
version: "4.1.2-25"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/Member_ptr_functors"
---

# Member\_ptr\_functors(3)

## NAME

Adaptors for pointers to members -

## 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)())\
