mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-04-20 03:01:31 -04:00
25 lines
328 B
C++
25 lines
328 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(const Player& P) :
|
|
vector<T>(P.num_players()), mine(this->at(P.my_num()))
|
|
{
|
|
}
|
|
};
|
|
|
|
#endif /* TOOLS_BUNDLE_H_ */
|