Apache Mesos
Namespaces | Functions
utils.hpp File Reference
#include <algorithm>
#include <cmath>
#include <numeric>
#include <random>
#include <vector>
#include <stout/check.hpp>

Go to the source code of this file.

Namespaces

 mesos
 
 mesos::internal
 
 mesos::internal::master
 
 mesos::internal::master::allocator
 

Functions

template<class RandomAccessIterator , class URBG >
void mesos::internal::master::allocator::weightedShuffle (RandomAccessIterator begin, RandomAccessIterator end, const std::vector< double > &weights, URBG &&urbg)