Skip to content
Snippets Groups Projects
Commit b49f1b2c authored by Matthew D Jones's avatar Matthew D Jones
Browse files

Re #15287 Replace multiset with unordered_multiset

parent 19a94d49
No related branches found
No related tags found
No related merge requests found
#include "MantidKernel/CompositeValidator.h"
#include <unordered_set>
using namespace Mantid::Kernel;
......@@ -11,13 +12,13 @@ CompositeValidator::CompositeValidator() : IValidator(), m_children() {}
CompositeValidator::~CompositeValidator() { m_children.clear(); }
/**
* The allowed values for the composite vaidator. This returns
* The allowed values for the composite validator. This returns
* the intersection of the allowedValues for the child validators
* @return
*/
std::vector<std::string> CompositeValidator::allowedValues() const {
std::set<std::string> elem_unique;
std::multiset<std::string> elem_all;
std::unordered_multiset<std::string> elem_all;
// how many validators return non-empty list of allowed values
int n_combinations(0);
for (const auto &itr : m_children) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment