mosesdecoder/contrib/other-builds/moses2/Stack.cpp
2015-10-25 19:55:22 +00:00

25 lines
332 B
C++

/*
* Stack.cpp
*
* Created on: 24 Oct 2015
* Author: hieu
*/
#include "Stack.h"
Stack::Stack() {
// TODO Auto-generated constructor stub
}
Stack::~Stack() {
// TODO Auto-generated destructor stub
}
bool Stack::Add(Hypothesis *hypo)
{
std::pair<iterator, bool> ret = m_hypos.insert(hypo);
return ret.second;
}