Skip to content

Make SlowControlCollection class construct its SlowControlElements on the stack not the heap #6

Description

@marc1uk

replace Add to use emplace.
also greatly simplifies remove as you can just do map.erase(key). This returns the number of elements actually erased, so don't even need to check if it exists, you can just return whether the return value from the erase call ==1.
Also requires changing the use of pointers everywhere to not do that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions