Back to index

natlog  0.91.0
find.cc
Go to the documentation of this file.
00001 #include "conntrackrecord.ih"
00002 
00003 size_t ConntrackRecord::find(std::string const &key) const
00004 {
00005     for (auto &record: d_connections)
00006     {
00007         if (record && record->key == key)
00008             return &record - &d_connections[0];
00009     }
00010     return numeric_limits<size_t>::max();
00011 }