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
c8cf7c1e
Commit
c8cf7c1e
authored
8 years ago
by
Xavier Valls Pla
Committed by
Danilo Piparo
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Hide initializer_list overloads from documentation
parent
43d88e3f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/base/inc/ROOT/TExecutor.hxx
+4
-0
4 additions, 0 deletions
core/base/inc/ROOT/TExecutor.hxx
core/thread/inc/ROOT/TThreadExecutor.hxx
+4
-2
4 additions, 2 deletions
core/thread/inc/ROOT/TThreadExecutor.hxx
with
8 additions
and
2 deletions
core/base/inc/ROOT/TExecutor.hxx
+
4
−
0
View file @
c8cf7c1e
...
...
@@ -73,8 +73,10 @@ public:
auto
Map
(
F
func
,
unsigned
nTimes
)
->
std
::
vector
<
typename
std
::
result_of
<
F
()
>::
type
>
;
template
<
class
F
,
class
INTEGER
,
class
Cond
=
noReferenceCond
<
F
,
INTEGER
>
>
auto
Map
(
F
func
,
ROOT
::
TSeq
<
INTEGER
>
args
)
->
std
::
vector
<
typename
std
::
result_of
<
F
(
INTEGER
)
>::
type
>
;
/// \cond
template
<
class
F
,
class
T
,
class
Cond
=
noReferenceCond
<
F
,
T
>
>
auto
Map
(
F
func
,
std
::
initializer_list
<
T
>
args
)
->
std
::
vector
<
typename
std
::
result_of
<
F
(
T
)
>::
type
>
;
/// \endcond
template
<
class
F
,
class
T
,
class
Cond
=
noReferenceCond
<
F
,
T
>
>
auto
Map
(
F
func
,
std
::
vector
<
T
>
&
args
)
->
std
::
vector
<
typename
std
::
result_of
<
F
(
T
)
>::
type
>
;
...
...
@@ -86,8 +88,10 @@ public:
auto
MapReduce
(
F
func
,
unsigned
nTimes
,
R
redfunc
)
->
typename
std
::
result_of
<
F
()
>::
type
;
template
<
class
F
,
class
INTEGER
,
class
R
,
class
Cond
=
noReferenceCond
<
F
,
INTEGER
>
>
auto
MapReduce
(
F
func
,
ROOT
::
TSeq
<
INTEGER
>
args
,
R
redfunc
)
->
typename
std
::
result_of
<
F
(
INTEGER
)
>::
type
;
/// \cond
template
<
class
F
,
class
T
,
class
R
,
class
Cond
=
noReferenceCond
<
F
,
T
>
>
auto
MapReduce
(
F
func
,
std
::
initializer_list
<
T
>
args
,
R
redfunc
)
->
typename
std
::
result_of
<
F
(
T
)
>::
type
;
/// \endcond
template
<
class
F
,
class
T
,
class
R
,
class
Cond
=
noReferenceCond
<
F
,
T
>
>
auto
MapReduce
(
F
func
,
std
::
vector
<
T
>
&
args
,
R
redfunc
)
->
typename
std
::
result_of
<
F
(
T
)
>::
type
;
template
<
class
F
,
class
T
,
class
Cond
=
noReferenceCond
<
F
,
T
>
>
...
...
This diff is collapsed.
Click to expand it.
core/thread/inc/ROOT/TThreadExecutor.hxx
+
4
−
2
View file @
c8cf7c1e
...
...
@@ -56,8 +56,10 @@ namespace ROOT {
auto
MapReduce
(
F
func
,
unsigned
nTimes
,
R
redfunc
,
unsigned
nChunks
)
->
typename
std
::
result_of
<
F
()
>::
type
;
template
<
class
F
,
class
INTEGER
,
class
R
,
class
Cond
=
noReferenceCond
<
F
,
INTEGER
>
>
auto
MapReduce
(
F
func
,
ROOT
::
TSeq
<
INTEGER
>
args
,
R
redfunc
,
unsigned
nChunks
)
->
typename
std
::
result_of
<
F
(
INTEGER
)
>::
type
;
/// \cond
template
<
class
F
,
class
T
,
class
R
,
class
Cond
=
noReferenceCond
<
F
,
T
>
>
auto
MapReduce
(
F
func
,
std
::
initializer_list
<
T
>
args
,
R
redfunc
,
unsigned
nChunks
)
->
typename
std
::
result_of
<
F
(
T
)
>::
type
;
/// \endcond
template
<
class
F
,
class
T
,
class
R
,
class
Cond
=
noReferenceCond
<
F
,
T
>
>
auto
MapReduce
(
F
func
,
std
::
vector
<
T
>
&
args
,
R
redfunc
,
unsigned
nChunks
)
->
typename
std
::
result_of
<
F
(
T
)
>::
type
;
using
TExecutor
<
TThreadExecutor
>::
MapReduce
;
...
...
@@ -269,12 +271,12 @@ namespace ROOT {
auto
TThreadExecutor
::
MapReduce
(
F
func
,
ROOT
::
TSeq
<
INTEGER
>
args
,
R
redfunc
,
unsigned
nChunks
)
->
typename
std
::
result_of
<
F
(
INTEGER
)
>::
type
{
return
Reduce
(
Map
(
func
,
args
,
redfunc
,
nChunks
),
redfunc
);
}
/// \cond
template
<
class
F
,
class
T
,
class
R
,
class
Cond
>
auto
TThreadExecutor
::
MapReduce
(
F
func
,
std
::
initializer_list
<
T
>
args
,
R
redfunc
,
unsigned
nChunks
)
->
typename
std
::
result_of
<
F
(
T
)
>::
type
{
return
Reduce
(
Map
(
func
,
args
,
redfunc
,
nChunks
),
redfunc
);
}
/// \endcond
template
<
class
F
,
class
T
,
class
R
,
class
Cond
>
auto
TThreadExecutor
::
MapReduce
(
F
func
,
std
::
vector
<
T
>
&
args
,
R
redfunc
,
unsigned
nChunks
)
->
typename
std
::
result_of
<
F
(
T
)
>::
type
{
return
Reduce
(
Map
(
func
,
args
,
redfunc
,
nChunks
),
redfunc
);
...
...
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