[c++] How can I check for existence of element in std::vector, in one line?