![]() |
C++ Library Extensions 2022.12.09
To help learn modern C++ programming
|
#include <tpf_output.hpp>
Go to the source code of this file.
Classes | |
class | Functor |
class | DummyClass< ElementType > |
Typedefs | |
using | mem_function_t = int(DummyClass::*)(int, int) |
Functions | |
void | test_functor () |
int | call_mem (DummyClass &d, mem_function_t fptr, int a, int b) |
int | call_mem_through_obj_ptr (DummyClass *dptr, mem_function_t fptr, int a, int b) |
void | test_call_mem () |
void | test_call_mem_through_obj_ptr () |
void | test_member_function_pointer () |
int | main () |
Variables | |
tpf::sstream | stream |
auto | endl = tpf::endl |
using mem_function_t = int(DummyClass::*)(int, int) |
Definition at line 79 of file 09-functor.cpp.
int call_mem | ( | DummyClass & | d, |
mem_function_t | fptr, | ||
int | a, | ||
int | b | ||
) |
int call_mem_through_obj_ptr | ( | DummyClass * | dptr, |
mem_function_t | fptr, | ||
int | a, | ||
int | b | ||
) |
int main | ( | ) |
void test_call_mem | ( | ) |
void test_call_mem_through_obj_ptr | ( | ) |
Definition at line 101 of file 09-functor.cpp.
void test_functor | ( | ) |
Definition at line 25 of file 09-functor.cpp.
void test_member_function_pointer | ( | ) |
auto endl = tpf::endl |
Definition at line 7 of file 09-functor.cpp.
tpf::sstream stream |
Definition at line 6 of file 09-functor.cpp.