FairRoot
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
cxx11-test-rvalue_references.cpp
Go to the documentation of this file.
1
int
foo
(
int
& lvalue)
2
{
3
return
123;
4
}
5
6
int
foo
(
int
&& rvalue)
7
{
8
return
321;
9
}
10
11
int
main
()
12
{
13
int
i = 42;
14
return
((
foo
(i) == 123) && (
foo
(42) == 321)) ? 0 : 1;
15
}
foo
auto foo(int i) -> int
Definition:
cxx11-test-auto_ret_type.cpp:1
main
int main(void)
Definition:
cxx11-test-__func__.cpp:1
FairRoot
cmake
checks
cxx11-test-rvalue_references.cpp
Generated on Mon Mar 8 2021 12:14:05 for FairRoot by
1.8.5