Can std::promise have multiple values?

Is the following code available? I.e. is that possible that I pass multiple values into the channel between std::promise and the associated std::future? If only one value is allowed, should I use struct?

 
  std::promise<int,int> myPromise;
It only takes one type, so you need to use a struct/class.
std::pair<int,int> will probably be enough
Topic archived. No new replies allowed.