C++ comparing bunch of values with a given one

后端 未结 10 914
一向
一向 2021-01-21 06:02

I need to compare one given value with a retrieved values. I do this several times in the code. I am not satisfied with how it looks and I am seeking for a some sort of an util

10条回答
  •  隐瞒了意图╮
    2021-01-21 07:01

    std::find_first_of.

    Of course, if you only care about finding a single value, you can create your own wrapper around std::find.

提交回复
热议问题