Panzer  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Panzer_UtilityAlgs.hpp
Go to the documentation of this file.
1 #ifndef __Panzer_UtilityAlgs_hpp__
2 #define __Panzer_UtilityAlgs_hpp__
3 
4 #include <vector>
5 #include <functional>
6 
7 namespace panzer{
8 
18 void reorder(std::vector<int> & order,std::function<void(int,int)> swapper);
19 
20 }
21 
22 #endif
void reorder(std::vector< int > &order, std::function< void(int, int)> swapper)
Using a functor, reorder an array using a order vector.