30 #include <boost/algorithm/string.hpp> 
   40         auto n = m_regEntries.size();
 
   41         std::cout << 
"Current map contains " << m_regEntries.size()
 
   42                   << 
" entries: " << std::endl;
 
   43         for (decltype(n) i = 0; i < n; ++i) {
 
   44             std::cout << 
"ID: " << i << 
"; " 
   45                       << 
"Name: " << m_regEntries[i] << std::endl;
 
   50         auto entry = std::find(begin(m_regEntries), end(m_regEntries), str);
 
   51         if (end(m_regEntries) != entry) {
 
   59         m_regEntries.push_back(str);
 
   67         if (
id.value() >= m_regEntries.size()) {
 
   73         return m_regEntries[
id.value()];
 
   78     std::vector<std::string> RegisteredStringMap::getEntries()
 const {
 
   95         if (peerID.value() >= m_remoteToLocal.size()) {
 
   96             throw std::out_of_range(
"Peer ID out of range!");
 
  102         std::vector<std::string> 
const &peerEntries) {
 
  103         m_remoteToLocal.clear();
 
  104         auto n = peerEntries.size();
 
  105         for (uint32_t i = 0; i < n; ++i) {
 
  106             m_remoteToLocal.push_back(
 
void clearModifiedFlag()
Clear the modified flag. 
void printCurrentMap()
helper function to print size and contents of the map 
util::StringID getStringID(std::string const &str)
std::string getStringFromId(util::StringID id) const 
bool m_modified
special flag that gets switched whenever new element is inserted; 
bool isModified() const 
Has a new entry been added since the flag was last cleared?