That’s just an enum so you can tell the function how you want to compare.
Basic example
enum class Comparison
{
Less,
Equal,
Greater
};
bool Compare(int A, int B, Comparison C)
{
switch (C)
{
case Comparison::Less:
return A < B;
case Comparison::Equal:
return A == B;
case Comparison::Greater:
return A > B;
}
}
int main()
{
bool Example = Compare(1, 2, Comparison::Less);
}
And I assume this code was written before scoped enums (enum class) existed which is why namespace Foo { enum Bar {}; } is used, it achieves almost the same thing.
Note: I have no knowledge about that section and am not the TA for this course.
Based on the name FOnlineSearchSetting::Set<bool> is a set, so you’re comparing the first argument to the key and if it’s found, setting it to the second argument.