File: functionOverload.h

package info (click to toggle)
breathe 4.36.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 2,224 kB
  • sloc: python: 12,703; cpp: 1,737; makefile: 523; xml: 168; sh: 54; ansic: 52
file content (60 lines) | stat: -rw-r--r-- 1,294 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#include <string>

//! Non overloaded function
void simplefunc();

//! Function which takes two int arguments
void f(int, int);

//! Function which takes two double arguments
void f(double, double);

namespace test {

//! Another function which takes two int arguments
void g(int, int);

//! Another function which takes two double arguments
void g(double, double);

}

/*! needed for references in global function parameters */
class MyType {};

/*! needed for references in global function parameters */
class MyOtherType {};

//! Another function which takes a custom type
void h(std::string, MyType);

//! Another function which takes another custom type
void h(std::string, MyOtherType o);

//! Another function which takes a basic type
void h(std::string, float myfloat);

//! Another function which takes a const custom type
void h(std::string, const MyType& mytype);

//! Another function which takes a const basic type
void h(std::string, const int myint);

//! Another function which takes a const basic type
template <typename T>
void h(std::string, const T myType);

//! Another function which takes a const basic type
template <typename T, typename U>
void h(std::string, const T m, const U n);


/**
 * Test function 1.
 */
void j(int);

/**
 * Test function 2.
 */
void j(char);