Rosetta
Classes | Typedefs | Functions | Variables
T05.default.hpp File Reference

Binder self-test file. Bindings of functions with default arguments. More...

Classes

class  A< T >
 
class  B
 

Typedefs

using function_type = void()
 

Functions

double foo (int a, int i1=1, int &i2=_static_int_, float f=2.0f, double const &d=4.16, void *p=nullptr, int q=10)
 
void foo_f0 (function_type f, int a=0, float b=1.0)
 
void foo_f1 (function_type &f, int a=0, float b=1.0)
 
void foo_f2_not_binded (function_type *f, int a=0, float b=1.0)
 

Variables

int _static_int_ = 2
 
A _static_a_
 

Detailed Description

Binder self-test file. Bindings of functions with default arguments.

Author
Sergey Lyskov

Typedef Documentation

◆ function_type

using function_type = void()

Function Documentation

◆ foo()

double foo ( int  a,
int  i1 = 1,
int &  i2 = _static_int_,
float  f = 2.0f,
double const &  d = 4.16,
void *  p = nullptr,
int  q = 10 
)

References create_a3b_hbs::f.

◆ foo_f0()

void foo_f0 ( function_type  f,
int  a = 0,
float  b = 1.0 
)

Referenced by bind_T05_default().

◆ foo_f1()

void foo_f1 ( function_type f,
int  a = 0,
float  b = 1.0 
)

◆ foo_f2_not_binded()

void foo_f2_not_binded ( function_type f,
int  a = 0,
float  b = 1.0 
)

Variable Documentation

◆ _static_a_

A _static_a_

◆ _static_int_

int _static_int_ = 2