Skip to content
Snippets Groups Projects
Select Git revision
  • a372512f899f3e5bb76f316cafed245fd5ffa459
  • master default protected
  • gitkeep
  • dev protected
  • Issue/2449-GuidPidSlugToProjectSettings
  • Issue/2309-docs
  • Issue/2355-topLevelOrg
  • Issue/2328-noFailOnLog
  • Hotfix/2371-fixGitLabinRCV
  • Issue/2287-guestRole
  • Fix/xxxx-activateGitlab
  • Test/xxxx-enablingGitLab
  • Issue/2349-gitlabHttps
  • Issue/2259-updatePids
  • Issue/2101-gitLabResTypeUi
  • Hotfix/2202-fixNaNQuota
  • Issue/2246-quotaResoval
  • Issue/2221-projectDateCreated
  • Hotfix/2224-quotaSizeAnalytics
  • Fix/xxxx-resourceVisibility
  • Issue/2000-gitlabResourcesAPI
  • v4.4.3
  • v4.4.2
  • v4.4.1
  • v4.4.0
  • v4.3.4
  • v4.3.3
  • v4.3.2
  • v4.3.1
  • v4.3.0
  • v4.2.8
  • v4.2.7
  • v4.2.6
  • v4.2.5
  • v4.2.4
  • v4.2.3
  • v4.2.2
  • v4.2.1
  • v4.2.0
  • v4.1.1
  • v4.1.0
41 results

Project.Tests.csproj

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    s2_e3.1_rawPtr.cxx 800 B
    // SPDX-FileCopyrightText: © 2022 Competence Center for High Performance Computing in Hessen (HKHLR) <christian.iwainksy@hpc-hessen.de>
    //
    // SPDX-License-Identifier: MIT
    
    #include <memory>
    #include <iostream>
    using namespace std;
    struct Example {
      int myInt;
      Example(int arg):myInt(arg){};
      virtual ~Example(){cout<<"~Example" << myInt<<endl;};
    };
    struct Adapter {
      Example * TheExample;
      Adapter(Example * arg):TheExample(arg){};
      Example * get(){return TheExample;}
    };
    
    int main(int argc,char**){
      Example * rawPtr = new Example(11);
      cout << "rawPtr = " << rawPtr<< endl;
      Adapter adapter=Adapter(rawPtr);
      cout << "rawPtr = " << rawPtr<< endl;
      cout << "Use of example:" << adapter.get()->myInt << endl;
      adapter=Adapter(nullptr);
      cout << "End of Program" << endl;
      return 0;
    }