Skip to content
Snippets Groups Projects
Commit c8cf7c1e authored by Xavier Valls Pla's avatar Xavier Valls Pla Committed by Danilo Piparo
Browse files

Hide initializer_list overloads from documentation

parent 43d88e3f
No related branches found
No related tags found
No related merge requests found
......@@ -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>>
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment