Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Root
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
为了安全,强烈建议开启2FA双因子认证:User Settings -> Account -> Enable two-factor authentication!!!
Show more breadcrumbs
cxwx
Root
Commits
acf6f799
Commit
acf6f799
authored
6 years ago
by
Danilo Piparo
Browse files
Options
Downloads
Patches
Plain Diff
[VecOps] Format the code
parent
2c018a0d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tutorials/vecops/vo001_AdoptOrOwnMemory.C
+4
-8
4 additions, 8 deletions
tutorials/vecops/vo001_AdoptOrOwnMemory.C
with
4 additions
and
8 deletions
tutorials/vecops/vo001_AdoptOrOwnMemory.C
+
4
−
8
View file @
acf6f799
...
...
@@ -10,14 +10,11 @@
/// \author Danilo Piparo
// We use this class for didactic purposes: upon copy, a line is printed to the terminal.
class
UponCopyPrinter
{
class
UponCopyPrinter
{
public:
UponCopyPrinter
()
=
default
;
UponCopyPrinter
(
UponCopyPrinter
&&
)
=
default
;
UponCopyPrinter
(
const
UponCopyPrinter
&
){
std
::
cout
<<
"Invoking copy c'tor!"
<<
std
::
endl
;
}
UponCopyPrinter
()
=
default
;
UponCopyPrinter
(
UponCopyPrinter
&&
)
=
default
;
UponCopyPrinter
(
const
UponCopyPrinter
&
)
{
std
::
cout
<<
"Invoking copy c'tor!"
<<
std
::
endl
;
}
};
using
namespace
ROOT
::
VecOps
;
...
...
@@ -46,5 +43,4 @@ void vo001_AdoptOrOwnMemory()
// Of course, now the addresses are different.
std
::
cout
<<
v
.
data
()
<<
" and "
<<
v2
.
data
()
<<
std
::
endl
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment