Make UnorderedFastKeyTable::const_iterator STL-compliant

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Fix
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Internal Code
    • Service Arch
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Currently the const_iterator of UnorderedFastKeyTable ("UFKT") is not STL-compliant. This makes it a compiler error to fill an STL container using UFKT iterators, e.g.

      StringMap<int> foo; // just a typedef'd UKFT
      // do stuff with foo ...
      std::vector<std::pair<std::string, int>> bar(foo.begin(), foo.end())
      

      To fix this it is necessary to add these typedefs to the definition of UFKT::const_iterator :

      iterator_category
      value_type
      difference_type
      pointer
      reference

            Assignee:
            [DO NOT USE] Backlog - Service Architecture
            Reporter:
            Adam Midvidy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: