Files
MP-SPDZ/Tools/Bundle.h
2019-06-07 15:26:28 +10:00

25 lines
322 B
C++

/*
* Bundle.h
*
*/
#ifndef TOOLS_BUNDLE_H_
#define TOOLS_BUNDLE_H_
#include <vector>
using namespace std;
template<class T>
class Bundle : public vector<T>
{
public:
T& mine;
Bundle(Player& P) :
vector<T>(P.num_players()), mine(this->at(P.my_num()))
{
}
};
#endif /* TOOLS_BUNDLE_H_ */