- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
class Params
{
std::map<std::string, std::string> db;
public:
const_iterator find (const std::string &name) const
{
for (auto i = db.begin(); i != db.end(); ++i) {
if (i->first == name) {
const_iterator p(i);
return p;
}
}
return db.end();
}
};
> const_iterator
Зачем фейк подсовываешь, дорогой?