HPX - High Performance ParalleX

PrevUpHomeNext

Header <hpx/lcos/when_some.hpp>

namespace hpx {
  template<typename Sequence> struct when_some_result;
  template<typename InputIter, 
           typename Container = vector<future<typename std::iterator_traits<InputIter>::value_type>> > 
    future< when_some_result< Container > > 
    when_some(std::size_t, Iterator, Iterator, error_code & = throws);
  template<typename Range> 
    future< when_some_result< Range > > 
    when_some(std::size_t, Range &&, error_code & = throws);
  template<typename... T> 
    future< when_some_result< tuple< future< T >...> > > 
    when_some(std::size_t, error_code &, T &&...);
  template<typename... T> 
    future< when_some_result< tuple< future< T >...> > > 
    when_some(std::size_t, T &&...);
  template<typename InputIter, 
           typename Container = vector<future<typename std::iterator_traits<InputIter>::value_type>> > 
    future< when_some_result< Container > > 
    when_some_n(std::size_t, Iterator, std::size_t, error_code & = throws);
}

PrevUpHomeNext