Gobelijn API documentation  - generated for commit a0cbea7
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
inline-functions.cpp
Go to the documentation of this file.
1 #include <iostream>
2 
3 class MulAddHelpers
4 {
5 public:
6  static int muladd(int a, int b, int c) { return a * b + c; }
7 };
8 
9 inline int muladd(int a, int b, int c) { return a * b + c; }
10 
11 int main()
12 {
13  std::cout << MulAddHelpers::muladd(1, 2, 3) << std::endl;
14  std::cout << muladd(1, 2, 3) << std::endl;
15 }
int main()
int muladd(int a, int b, int c)