28 : m_id(tid), m_name(name)
42 m_towns.push_back(town);
48 if(it != m_towns.end())
54 auto it = std::find_if(m_towns.begin(), m_towns.end(),
55 [=] (
const TownPtr& town) ->
bool { return town->getId() == townId; });
56 if(it != m_towns.end())
63 auto it = std::find_if(m_towns.begin(), m_towns.end(),
64 [=] (
const TownPtr& town) ->
bool { return town->getName() == name; } );
65 if(it != m_towns.end())
72 return std::find_if(m_towns.begin(), m_towns.end(),
73 [=] (
const TownPtr& town) ->
bool { return town->getId() == townId; });