Added operator [] to TargetPhraseCollection.

This commit is contained in:
Ulrich Germann 2014-06-05 01:44:11 +01:00
parent c7a0520a18
commit 22ec93b85c

View File

@ -44,6 +44,12 @@ public:
typedef CollType::iterator iterator;
typedef CollType::const_iterator const_iterator;
TargetPhrase const*
operator[](size_t const i) const
{
return m_collection.at(i);
}
iterator begin() {
return m_collection.begin();
}