inline namespace

Solutions on MaxInterview for inline namespace by the best coders in the world

showing results for - "inline namespace"
Christian
25 Jan 2019
1#include <iostream>
2
3using namespace std;
4
5namespace AppVersion{
6    namespace version1{
7        void display(){
8            cout <<"display function from the version 1"<<endl;
9        }
10    }
11    namespace version2{
12        void display(){
13            cout<< "display function from the version 2"<<endl;
14        }
15    }
16 inline   namespace version3{
17        void display(){
18            cout<< "display function from the version 3"<<endl;
19        }
20    }
21      namespace version3{
22        void whatsUp(){
23            cout<< "whatsup function from the version 3"<<endl;
24        }
25    }
26
27}
28
29
30int main()
31{
32    AppVersion :: display();
33    AppVersion :: whatsUp();
34    return 0;
35}
36
37