/* * extractJobIds.hpp * * Created on: Aug 31, 2012 * Author: heber */ #ifndef EXTRACTJOBIDS_HPP_ #define EXTRACTJOBIDS_HPP_ // include config.h #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include "JobMarket/types.hpp" template std::vector extractJobIds(const std::map &iddata) { // create a vector of all job ids std::vector jobids; std::transform(iddata.begin(),iddata.end(), std::back_inserter(jobids), boost::bind(&std::map::value_type::first, boost::lambda::_1 ) ); return jobids; } #endif /* EXTRACTJOBIDS_HPP_ */