Project
Loading...
Searching...
No Matches
cxx14-test-make_unique.cxx
Go to the documentation of this file.
1
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3
// All rights not expressly granted are reserved.
4
//
5
// This software is distributed under the terms of the GNU General Public
6
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7
//
8
// In applying this license CERN does not waive the privileges and immunities
9
// granted to it by virtue of its status as an Intergovernmental Organization
10
// or submit itself to any jurisdiction.
11
17
18
#include <memory>
19
20
bool
checkPointer
(
int
number)
21
{
22
auto
pointer
= std::make_unique<int>(number);
23
return
*
pointer
== number;
24
}
25
26
int
main
()
27
{
28
bool
ret =
checkPointer
(41);
29
return
ret ? 0 : 1;
30
}
checkPointer
bool checkPointer(int number)
Definition
cxx14-test-make_unique.cxx:20
main
int main()
Definition
cxx14-test-make_unique.cxx:26
pointer
GLenum void ** pointer
Definition
glcorearb.h:805
cmake
checks
cxx14-test-make_unique.cxx
Generated on Tue Feb 25 2025 23:16:08 for Project by
1.9.8